简体   繁体   English

我可以在Visual Studio的C#编辑器中禁用Ctrl + Click吗?

[英]Can I disable Ctrl+Click in Visual Studio's C# editor?

When working in C++ in Visual Studio, Ctrl+clicking on a word in the text editor selects it. 在Visual Studio中使用C ++进行工作时,按住Ctrl键并在文本编辑器中单击一个单词将其选中。 When working in C#, on the other hand, Ctrl+click also does a Go To Definition when possible. 另一方面,在C#中工作时,在可能的情况下,按住Ctrl键并单击也会执行“转到定义”。

Can I disable the Go To Definition functionality? 我可以禁用“转到定义”功能吗? I'd like Ctrl+click to always only ever select the word, and nothing else. 我希望按住Ctrl键并单击总是只选择单词,而没有其他选择。

I'm using Visual Studio 2017. 我正在使用Visual Studio 2017。

Yes you can easily disable, go to Tools->Options->Text Editor->General-> Enable mouse click to perform Go to Definition. 是的,您可以轻松禁用它,请转到“工具”->“选项”->“文本编辑器”->“常规”->“启用鼠标单击以执行转到定义”。

在哪里禁用

Note yo can also change the modifier. 注意您也可以更改修饰符。

Under the Text Editor options, uncheck this 在“文本编辑器”选项下,取消选中此选项

Enable mouse click to perform Go to Definition 启用鼠标单击以执行转到定义

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

相关问题 Ctrl +单击类时,Visual Studio打开其他拆分窗口 - Visual Studio Opens Additional Split Window When Ctrl+Click on class C# 当我使用 ctrl + 单击 class 时,Visual Studio 会打开源代码 - C# Visual Studio opens with source codes when I click on a class with ctrl + 如何在Visual Studio C#中禁用和启用按钮上的click事件 - How to disable and enable a click event on a button in Visual Studio C# Visual Studio 编辑器支持多行 c# 注释 - Visual Studio editor's support for multiple lines c# comments 我可以在Visual Studio 2008中使用C#的代码编辑器显示一行分隔方法吗? - Can I have the Code Editor for C# in Visual Studio 2008 show a line separating methods? 如何将上下文菜单项添加到Visual Studio的C#编辑器? - How can I add Context Menu Items to C# Editor of Visual Studio? 如何在Visual Studio 2017 VSIX C#项目中启用/禁用命令 - How can I enable/disable command in Visual Studio 2017 VSIX C# project 如何在Visual Studio 2015中禁用C#6支持? - How do I disable C# 6 Support in Visual Studio 2015? 我如何在没有点击按钮的情况下调用 function? (视觉工作室 c# 2017) - How can i call a function without click button ? (visual studio c# 2017) Ctrl+单击呈现部分视图的链接 - Ctrl+Click on link that renders partial view
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM