Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 580
John Washam Avatar asked Jun 26 '14 15:06

John Washam


People also ask

How do I enable peek in Visual Studio?

You can peek a definition by choosing Peek Definition from the right-click menu for a type or member that you want to explore. If the option is enabled, you can also peek a definition using the mouse, by pressing Ctrl (or another modifier) and clicking the member name. Or, from the keyboard, press Alt+F12.

Which feature helps to view the method definition without leaving the current page?

The Peek Definition feature lets you preview the definition of a type without leaving your current location in the editor. If you are a keyboard user, place your text cursor somewhere inside the type or member name and press Alt + F12. If you are a mouse user, you can select Peek Definition from the right-click menu.

How do I enable definition in Visual Studio?

Visual Studio Go To Definition The Go To Definition feature navigates to the source of a type or member and opens the result in a new tab. Using Keyboard, place your cursor on the member name and press F12. Using the mouse, right-click on the member name and select Go To Definition from the menu.

How do you enable to define in VS code?

Go to Definition# If a language supports it, you can go to the definition of a symbol by pressing F12. Tip: You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click.


1 Answers

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

like image 73
SnowFatal Avatar answered Sep 17 '22 13:09

SnowFatal