鼠标点击的键绑定

huangapple go评论73阅读模式
英文:

Keybindings with mouse click

问题

我正在使用C#进行开发,当我按住cmd键(在macOS上)并单击一个方法时,我会跳转到该方法的“定义”处。我正在寻找一种方法,可以按住cmd+shift并单击该方法,然后跳转到方法的“实现”处。我已经搜索和测试了一段时间,但没有找到任何方法;我开始怀疑这是否可能。

有人知道如何做到这一点,或者是否可能吗?

英文:

I am developing in C#, and when I hold down cmd (macOS) and Click a method, I am taken to it's Definition. I am looking for a way to be able to hold down cmd+shift and click the method, and be taken to the methods Implementation. I have searched and tested for some time without finding anything; I am starting to think it is not possible.

Does anyone know how, or if it even is possible?

答案1

得分: 2

目前无法实现。鼠标点击不被视为修饰键,目前无法自定义。这方面有一个开放的问题:https://github.com/microsoft/vscode/issues/3130。

您仍然可以按下Command+F12跳转到实现(可能不太方便,因为您还必须按下Fn)。此外,某些应用程序或特定的鼠标允许您映射键。

英文:

It's currently impossible. Mouse clicks are not considered modifiers and cannot be customized right now. There's an open issue for this: https://github.com/microsoft/vscode/issues/3130.

You can still press command+F12 to jump to Implementation (which may be unhandy, since you have to press Fn as well). Besides, some applications or specific mouses allow you to map keys.

huangapple
  • 本文由 发表于 2023年1月9日 19:43:37
  • 转载请务必保留本文链接:https://go.coder-hub.com/75056790.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定