0

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?

Erdrik Ironrose
  • 161
  • 1
  • 6
  • The feature I am referring to is the IntelliCode Whole Line Completion: https://learn.microsoft.com/en-us/visualstudio/intellicode/visual-studio-whole-line-completions IntellISense as I understand it is the dropdown menu, not the suggestion provided for whole line completion. – Erdrik Ironrose Apr 11 '22 at 08:38
  • 1
    My mistake, sorry. – Dai Apr 11 '22 at 08:53

1 Answers1

2

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.

Piers Myers
  • 10,611
  • 6
  • 46
  • 61
  • 1
    There is no 'Intellicode' listed in 'Tools > Options' in the Community Edition of VS 2022 that I'm using. – hermitjimx Feb 14 '23 at 09:51