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:

4
  • 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
    Commented Aug 27, 2012 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
    Commented Jan 7, 2013 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
    Commented Aug 7, 2013 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
    Commented Jan 11, 2014 at 13:33

3 Answers 3

59

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

2
  • 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. Commented Aug 28, 2012 at 9: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. Commented Aug 31, 2016 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.

3
  • 2
    if you have PPT and resharper you need to turn off both settings
    – ufosnowcat
    Commented Jul 17, 2013 at 8:32
  • 2
    Thank you. This has been irking me since upgrading to 2012. There will now be no more "I didn't effing ask to go to definition!" in my office. :)
    – Dib
    Commented Aug 7, 2013 at 13:18
  • I still use F12 for that. CTRL + Click is anoying while navigating with the mouse and pasting... +1 for U! Commented Dec 24, 2013 at 23:20
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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.