简体   繁体   English

在Visual Studio中配置触发智能感知完成的键

[英]Configure keys that trigger intellisense completion in Visual Studio

I would like Visual Studio to autocomplete the current entry in the intellisense menu only when I hit tab. 我希望Visual Studio仅在单击选项卡时才自动完成智能感知菜单中的当前条目。

Autocompletion being triggered, for example, when I press a period, is forcing me to hit escape every time I'm writing something that cannot yet be autocompleted, to avoid that what I'm typing gets replaced with a random entry. 例如,当我按下一个句点时,触发自动完成功能会迫使我每次编写尚无法自动完成的内容时都要逃脱,以避免我输入的内容被随机输入所代替。

Is there an option to configure this? 有配置选项吗?

I'm using Visual Studio 2015, and programming in C#. 我正在使用Visual Studio 2015,并使用C#进行编程。

自动完成示例

Example: here I'm typing Log , which is a class for which I haven't yet added the appropriate using statement. 示例:在这里输入Log ,这是一个我尚未为其添加适当的using语句的类。 None of the suggestions is the good one. 这些建议都不是好建议。 If I hit . 如果我打. now, the autocomplete feature will write EventLogProcessor , which is not what I want. 现在,自动完成功能将编写EventLogProcessor ,这不是我想要的。

Please note that this question has nothing to do with VIM, this is not a duplicate of the question linked at the top. 请注意,该问题与VIM无关,这不是顶部链接的问题的重复。

Use Toggle Between suggestion and Standard completion mode option of visual studio .. It will now only suggest .. and if you press Tab it will complete your choice .. 使用visual studio Toggle Between suggestion and Standard completion mode选项。现在仅suggest ..如果按Tab ,它将完成选择。

Edit -> IntelliSense -> Toggle 编辑-> IntelliSense->切换

For Visual Studio 2012, from the Menu Bar, 对于Visual Studio 2012,从菜单栏中,

  1. Select Tools -> Options 选择工具->选项
  2. In the left pane, expand Text Editor -> C# 在左窗格中,展开“文本编辑器”->“ C#”
  3. Select InteliSense 选择InteliSense

The characters that commit are listed in a text box 提交的字符在文本框中列出

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

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