Can you turn off Peek Definition in Visual Studio 2013 and up?

不羁岁月 提交于 2019-11-28 16:36:07

In pre 2017 Visual Studio:

ToolsOptionsProductivity Power ToolsOther ExtensionsControl click shows definitions in Peek

Adam Garner pointed out that in Visual Studio 2017, the location is:

ToolsOptionsText EditorGeneralEnable mouse click to perform Go to Definition

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

In the latest version of Visual Studio 2017 (15.4.0) it is:

ToolsOptionsText EditorGeneralEnable mouse click to perform Go to Definition

You can either disable it by unchecking the box, or set a different key to trigger the mode.

Ctrl + Click -> Peek Definition is actually enabled by Productivity Power Tools. If you disable "Ctrl + Click Go To Definition" in Productivity Power Tools options then this behaviour will disappear.

For Visual Studio 2017 it is:

ToolsOptionsProductivity Power ToolsGeneralControl click shows definitions in Peek

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!