英文:
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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论