问题
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 Tools → Options → Productivity 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