Configure keys that trigger intellisense completio

2019-02-16 23:20发布

问题:

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