50

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:

Eleanor Zimmermann
  • 414
  • 1
  • 8
  • 26
André C. Andersen
  • 8,955
  • 3
  • 53
  • 79
  • It would help if you determined which plug-in was causing it. If you have Resharper, turn off the feature and see if it's still there. – John Arlen Aug 27 '12 at 23:19
  • did you ever find a way of doing this? i experience the same thing as i use ctrl+drag to copy&paste a lot – Sethi Jan 07 '13 at 15:02
  • 3
    Thank you for asking this question. This "going to definition" has been bugging me due to my CTRL+C -> CTRL+V finger behviour. I alway end up pasting a varible name or object type into the middle of the object type declaration and this makes me curse out loud! I generally use "Right-Click" -> "Go To Definition" when I actually intend to go to it, so removal of this little annoyance is welcome by me. – Dib Aug 07 '13 at 13:20
  • I'd love a solution for this as well. My workflow is that CTRL+Mouseclick should select the whole word under the mouse. So I really like to remap the PPT function to CTRL+SHIFT+Click. – Ela782 Jan 11 '14 at 13:33

3 Answers3

59

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

Dmitry Osinovskiy
  • 9,999
  • 1
  • 47
  • 38
  • ReSharper and the Productivity Power Tools (PPT) extension both added the same functionality. I turned it of in PPT, but it still persisted. Your suggestion removed it entirely, thanks. However, I really wanted to change the key combination not disable it. If no better answer comes within a day or two, I'll accept yours. – André C. Andersen Aug 28 '12 at 09:03
  • 1
    In my case, I wanted ReSharper's version, but PPT was overriding it. I turned off ReSharper's implementation, then turned off PPT's version, then restarted VS. Finally, I turned ReSharper's implementation back on. This worked for me. – Brian MacKay Aug 31 '16 at 20:31
27

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.

northben
  • 5,448
  • 4
  • 35
  • 47
9

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

Enter image description here

Peter Mortensen
  • 30,738
  • 21
  • 105
  • 131
Tosh
  • 531
  • 7
  • 3