In Visual Studio 2013 and up, there is the Peek Definition feature when you Ctrl + Click. At first I thought this was cool, but I have found that the majority of the time, I need to click the Promote to Document
button, since I make lots of changes to the files I Ctrl + Click on. But after Googling how to turn off Peek Definition, I can't find any details on if this is possible. What I would really like is for the Ctrl + Click functionality to go back to opening the definition in its own tab, like in previous versions of VS. Is this possible?
109
votes
I despise this "feature": it frequently pops up unexpectedly when I'm using the mouse to click on a word that I want to replace, and my left hand is readying to Control-V for pasting. I frequently end up renaming a class because my hands are faster than my vision. But I can't find any way to disable it.
– sfuqua
@sfuqua I had the same issue, but even before - In my case it was due to a double assignment of the Ctrl+Click command. Both Resharper and the Power-Tools provide this feature and assigned it. So disabling the Powertools one solved the problem for me.
– Efrain
most annoying when the definition is in the same file.. you get the definition often just a few lines from original
– Sonic Soul
@sfuqua it's even worse when you accidentally do the same into a header only library and end up getting thousands of lines of errors that just look like jibberish.
– will
5 Answers
222
votes
17
votes
If you have Resharper AND Productivity Power Tools, by default this will cause ctrl + click
to go to definition AND peek the definition. Very annoying. The solution from @SnowFatal will turn off the peek functionality. Resharper's option is listed as "Go to Declaration on <Control + Left Click> in the editor".
10
votes
6
votes