How to remap the Ctrl+Click “Go To Definition” short-key in the Productivity Power Tools (or maybe ReSharper)

时光总嘲笑我的痴心妄想 提交于 2019-12-05 08:20:57

问题


I love the Productivity Power Tools extension for visual studio, however it has added the Ctrl+Click "Go To Definition" functionality, which is great and all, but my workflow makes me use the functionality when I don't want it.

When I want to copy something, I start marking some text, still holding down the mouse button, hold down Ctrl + C and then release the mouse button. The tool acknowledges this as a Go To Definition click, and I usually end up in the definition of String or whatever. I know I could just release the Ctrl button prior to the mouse-button; however, I have a hard time reconditioning myself from a habit I have had since forever.

Is there a way to remap the Ctrl + Click Go To Definition functionality, say, to Ctrl+Shift+Click? I know I can deactivate it by going to "Tools>Options>Productivity Power Tools>All Extensions"; however, I don't want to lose the functionality just make it work as I want it.

Edits:

  • This might be a ReSharper issue.
  • This post discusses something similar

回答1:


Try going to ReSharper | Options -> Environment | Search & Navigation and turning off Go to declaration on <Control + Left click> in editor.




回答2:


I don't have ReSharper. But I was able to turn this off in Visual Studio 2012. I found it in Tools - Options - Productivity Power Tools - Ctrl+Click Go To Definition.




回答3:


Try menu ToolsOptionsProductivity Power Tools (left menu) → Turn it off where it says Ctrl + Click Go To Definition on your right side.



来源:https://stackoverflow.com/questions/12137953/how-to-remap-the-ctrlclick-go-to-definition-short-key-in-the-productivity-pow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!