Reputation: 2351
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
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
Reputation: 794
I found my solution in the "Options - Text Editor - General" settings. This was on VS 2017 thou.
Upvotes: 66
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
Reputation: 1909
Go to ReSharper Options > Environment > Search & Navigation, then uncheck the following options:
I finally solved it following the info I found on this page..
Upvotes: 2
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
Reputation: 179
To disable navigation to symbol definitions in VS2015, this one worked for me.
Upvotes: 17
Reputation:
edit
Ensure you are using Visual Studio as your resharper keyboard scheme.
Environment -> Keyboard & Menus
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.
Find the shortcut you want to remove, in this case Edit.NavigateTo and remove
.
Upvotes: 1
Reputation: 7059
To switch to the Visual C# keyboard mapping scheme
or you can do
Keyboard: CTRL + W
also plugin can be used
Keyboard Shortcut Exporter you can import/export keymapping file
Upvotes: 0