Michael Balser
Michael Balser

Reputation: 167

How to preselect intellisense entry in VS2019?

For example I have a local StringBuilder variable named builder. On VS2015, typing bui will show something like this:

enter image description here

However, when doing the same in VS2019, it's like this: enter image description here

The reason I would want the same behavior as 2015, is if I press enter key, or '.' key, it would automatically accept the preselected entry builder. On the otherhand, when on 2019, pressing enter/. would add a new line/. and the output would be bui + new line/. , as compared to 2015's behavior builder on enter, and builder. upon pressing '.'. Also, I tried toggling the setting under Options → Text Editor → C# → IntelliSense → Enter key behavior → 'Only add new line on enter after end of fully typed word' and it did not produce the output I wanted.

How or what options should I set to achieve the same behavior as VS2015?

Upvotes: 4

Views: 436

Answers (1)

LoLance
LoLance

Reputation: 28196

Make sure Toggle Completion Mode option is disabled in your machine.

In VS2019, Go Edit menu=>Intellisense=>Toggle Completion Mode. Click it to change its status.

Unchecked: enter image description here

Checked(blue rectangle): enter image description here

Then make sure you choose the Only add new line on enter after end of fully typed word.

I think the Toggle Completion Mode option is the main cause of your issue. Unchecked this option then the Enter behavior in Tools=>Options can work.

Upvotes: 4

Related Questions