Visual Studio 2015: Disable Control+Click Navigation

十年热恋 提交于 2019-12-03 01:16:43
MrDracow

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

Abdul Waahid

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

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.

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!

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

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.

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.

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

Keyboard Shortcut Exporter you can import/export keymapping file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!