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

16,844

Solution 1

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

Solution 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.

Solution 3

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

Share:
16,844
André C. Andersen
Author by

André C. Andersen

Co-founder and CTO of Enin AS. Passionate about engineering intuitive technologies for finance and business, by applying data science on both classical and alternative data.

Updated on June 06, 2022

Comments

  • André C. Andersen
    André C. Andersen almost 2 years

    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:

  • André C. Andersen
    André C. Andersen over 11 years
    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.
  • ufosnowcat
    ufosnowcat almost 11 years
    if you have PPT and resharper you need to turn off both settings
  • Dib
    Dib almost 11 years
    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. :)
  • Jeroen van Langen
    Jeroen van Langen over 10 years
    I still use F12 for that. CTRL + Click is anoying while navigating with the mouse and pasting... +1 for U!
  • Brian MacKay
    Brian MacKay over 7 years
    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.