Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable the "go to definition" on pressing CTRL key in Visual Studio?

I usually use the CTRL+click combination to select one word, but in Visual Studio 2017 (15.4) when I press CTRL the word is turned into a hyperlink that goes to its definition, I want to disable it:

enter image description here

like image 455
mshwf Avatar asked Nov 06 '17 10:11

mshwf


People also ask

How I can make Ctrl Click to go to definition in Visual Studio?

Ctrl-click Go To Definition To quickly navigate to the definition of a symbol, press the Ctrl key and then click on it. It's that easy!

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.

What is peek definition in Visual Studio?

In Visual Basic, Peek Definition shows a link to the Object Browser for symbols that don't have definition metadata (for example, . NET types that are built in).


2 Answers

Tools->Options->Text Editor->General

Uncheck Enable mouse click to perform Go to definition

It will work

enter image description here

like image 110
Moumit Avatar answered Oct 18 '22 18:10

Moumit


This setting has no effect when the "Ctrl+Click Go To Definition" Extension from Microsoft Marketplace is installed. The setting specified on the extension documentation page wasn't visible in the Options, Productivity Power Tools, Other Extensions, and hence, masked the real problem. Uninstalling the extension allows reverting to classic Ctrl+Click select behavior.

like image 1
Tim Mackey Avatar answered Oct 18 '22 20:10

Tim Mackey