Erdrik Ironrose
Erdrik Ironrose

Reputation: 171

How to change hotkey for Visual Studio 2022's Intellicode Auto Completion

By default, Visual Studio 2022's IntelliCode Auto Completion works by pressing the Tab key. Unfortunately that prevents you from using the Tab key to insert whitespace, leading to suggestions like this:

suggestion is not indented

In order to avoid this, I'd like to change the key used to apply the whole line completion to a different key, but I can't find it in the Tools/Environment/Keyboard keyboard mapping menu. Does anyone know how to change this key?

Upvotes: 1

Views: 2376

Answers (1)

Piers Myers
Piers Myers

Reputation: 10917

You could either turn off all or parts of IntelliCode (Tools->Options...->IntelliCode) or press the ESC key to cancel the suggestion and then press the TAB key. See the MS Docs for more details.

You can change the Whole line completion to the right arrow if that is better. There doesn't seem to be any way to choose your own key though.

Upvotes: 3

Related Questions