简体   繁体   中英

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

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.

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

In my experience, " Toggle Completion Mode " name changed into

Edit -> InteliSense -> "Switch between automatic and tab-only Intellisense completion"

智能感知

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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