Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Activate auto-complete for C# in Visual Studio 2019

I have the problem, that I get some suggestions for autocompletion (for example, I type "Cons" and I get the suggestion for "Console"), but these can't be applied with the Return-key.

Normally, the suggestion is fully blue, and gets attached, when I press 'enter', but for some time now, the suggestion has a blue border and pressing 'enter' results in a new line. Where can I change these settings, so IntelliSense completes the words again, while I write them? I already tried the IntelliSense-Settings in the C#-options, but these settings didn't change anything

like image 398
DudeWhoWantsToLearn Avatar asked Jun 17 '19 09:06

DudeWhoWantsToLearn


2 Answers

There are 2 different autocomplete modus in Visual Studio, suggestion mode has the behavior you describe. Suggestion and standard, explained here. Press CTRL-ATL-SPACE to toggle between these modes.

like image 53
Luc Avatar answered Oct 04 '22 10:10

Luc


You likely inadvertently used the keyboard shortcut to toggle completion mode. You can correct it with the same shortcut or in the menu it's Edit -> InteliSense -> Toggle Completion Mode

To change InteliSense from Suggestion mode to Completion mode in VS 2019

like image 26
HillPhelmuth Avatar answered Oct 04 '22 10:10

HillPhelmuth