Matt Murrell
Matt Murrell

Reputation: 2351

Visual Studio 2015: Disable Control+Click Navigation

After upgrading to Visual Studio 2015, holding control while clicking on a symbol navigates to that symbol definition. In prior versions, this would instead select the entire word.

How can I disable the navigation event when CTRL + Click(ing) a symbol, so that it highlights the word?

I do have Resharper (Ultimate 9.2) installed. The configuration option under Environment -> Search & Navigation -> Go to Declaration on Control + Click in the editor is not checked.

All the search engine results make mention of this being a feature of the Productivity Power Tools extensions in previous versions of Visual Studio. I do not have that extension installed.

Upvotes: 37

Views: 12961

Answers (8)

Eli Gassert
Eli Gassert

Reputation: 9763

An update for Productivity Power Tools + VS2017. Instead of having settings for this feature, a separate plugin gets installed. So after installing PPTs, you'll have a new extension called Ctrl+Click Go To Definition. Not sure why we need that tool considering it's baked into VS, but...

Anyway, Disabling that extension (plus the other things mentioned in other comments for VS and Resharper) fixed my ctrl+click woes.

Upvotes: 1

MrDracow
MrDracow

Reputation: 794

I found my solution in the "Options - Text Editor - General" settings. This was on VS 2017 thou.

enter image description here

Upvotes: 66

MOH3N
MOH3N

Reputation: 1065

In vs 2017 this setting is available in Tools -> Options -> Text Editor -> General -> Enable mouse click to perform Go to Definition.

You can uncheck it!

Upvotes: 4

MA9H
MA9H

Reputation: 1909

Go to ReSharper Options > Environment > Search & Navigation, then uncheck the following options:

  • Rich mouse navigation in the editor
  • Enable 'Smart go to declaration'

I finally solved it following the info I found on this page..

Upvotes: 2

Xavier Stévenne
Xavier Stévenne

Reputation: 123

With Resharper Ultimate 2016.3.1, I could fix the issue by disabling "Rich mouse navigation in the editor". It can be found in Resharper Options window, under Environment > Search & Navigation. Maybe updating Resharper could solve the issue.

Also, Productivity Power Tools is not installed on my machine.

Upvotes: 9

Abdul Waahid
Abdul Waahid

Reputation: 179

To disable navigation to symbol definitions in VS2015, this one worked for me.

Upvotes: 17

user3956566
user3956566

Reputation:

edit

Ensure you are using Visual Studio as your resharper keyboard scheme.

Environment -> Keyboard & Menus

enter image description here

Tools -> Options -> Environment -> Keyboard

To stop the go to declaration, select it and input a new key short cut for it. In this image I have demonstrated that I changed this short cut to ctr num 1 and could not change it to ctr num 3. On testing crt click does not no take me to the declaration.

enter image description here

Find the shortcut you want to remove, in this case Edit.NavigateTo and remove.

enter image description here

Upvotes: 1

Kaleem Ullah
Kaleem Ullah

Reputation: 7059

To switch to the Visual C# keyboard mapping scheme

  • On the Tools menu, click Options.
  • Expand Environment, and then click Keyboard.
  • Select Visual C# 2005 from the Apply the following application keyboard mapping scheme drop-down list.

or you can do

Keyboard: CTRL + W

also plugin can be used

enter image description here

Keyboard Shortcut Exporter you can import/export keymapping file

Upvotes: 0

Related Questions