Visual Studio 如何更改 GoToDeclaration 快捷方式 (Ctrl+F12)
在Visual Studio、C#中,我们有很多接口。您想要查看函数的实现以及唯一的方法是按 Ctrl+F12=GoToDeclaration。
其他快捷键Ctrl + 左键单击或F12将转到界面中函数的定义。与查看实际实现和导航代码的必要性相比,这并不是那么常用。
我经常通过点击名字来导航。我知道你也这样做。唯一的方法是按两个键,这非常慢,特别是因为在检查时通常只使用鼠标。
我想将 GoToDeclaration 快捷方式从 Ctrl + F12 更改为 鼠标中键单击(滚动单击),而 Visual Studio 设置仅允许使用键盘快捷键。
In Visual Studio, C#, we have many interfaces. And you want to see a function's implementation and the only way its by pressing Ctrl+F12=GoToDeclaration.
The other shortcuts Ctrl + Left Click or F12 will go to the function's definition in the interface. Which is not so used compared to the necessity to see the actual implementation and navigate code.
I highly navigate by clicking names. I know you also do. And the only way is by pressing two keys which is extremely slow especially because when inspecting you usually only use the mouse.
I want to change GoToDeclaration shortcut from Ctrl + F12 to Mouse middle button click (scroll click) and Visual Studio settings allows me only keyboard shortcuts.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我有同样的问题,并创建了一个 Autohotkey 脚本并进行了一些改进。
I had the same exact question and created an Autohotkey script with a few improvements.
根据评论:
According to the comments: