简体   繁体   English

如何在Visual Studio中按CTRL键禁用“转到定义”?

[英]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: 我通常使用CTRL +单击组合来选择一个单词,但是在Visual Studio 2017(15.4)中,当我按CTRL时 ,单词变成了转到其定义的超链接,我想禁用它:

在此处输入图片说明

Tools->Options->Text Editor->General 工具->选项->文本编辑器->常规

Uncheck Enable mouse click to perform Go to definition 取消选中“ Enable mouse click to perform Go to definition

It will work 会工作的

在此处输入图片说明

This setting has no effect when the "Ctrl+Click Go To Definition" Extension from Microsoft Marketplace is installed. 当安装了来自Microsoft Marketplace的“ Ctrl +单击转到定义”扩展名时,此设置无效。 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. 卸载扩展程序可以恢复为经典的Ctrl + Click选择行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM