Configure keys that trigger intellisense completion in Visual Studio

依然范特西╮ 提交于 2019-12-01 00:13:44

问题


I would like Visual Studio to autocomplete the current entry in the intellisense menu only when I hit tab.

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

Example: here I'm typing Log, which is a class for which I haven't yet added the appropriate using statement. None of the suggestions is the good one. If I hit . now, the autocomplete feature will write EventLogProcessor, which is not what I want.

Please note that this question has nothing to do with VIM, this is not a duplicate of the question linked at the top.


回答1:


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

Edit -> IntelliSense -> Toggle




回答2:


For Visual Studio 2012, from the Menu Bar,

  1. Select Tools -> Options
  2. In the left pane, expand Text Editor -> C#
  3. Select InteliSense

The characters that commit are listed in a text box



来源:https://stackoverflow.com/questions/33758154/configure-keys-that-trigger-intellisense-completion-in-visual-studio

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