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

前端 未结 5 951
醉梦人生
醉梦人生 2020-12-12 21:37

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 majori

相关标签:
5条回答
  • 2020-12-12 21:55

    For Visual Studio 2017 it is:

    ToolsOptionsProductivity Power ToolsGeneralControl click shows definitions in Peek

    0 讨论(0)
  • 2020-12-12 21:58

    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.

    0 讨论(0)
  • 2020-12-12 22:12

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

    0 讨论(0)
  • 2020-12-12 22:16

    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.

    0 讨论(0)
  • 2020-12-12 22:21

    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

    0 讨论(0)
提交回复
热议问题