0

When I use AI-assisted IntelliCode in Visual Studio 2022, I want that Visual Studio also inserts the closing curly brace - not only the opening one. The cursor should then be between the brackets.

enter image description here

Does anyone know if this can be configured somewhere?

BennoDual
  • 5,865
  • 15
  • 67
  • 153

1 Answers1

0

There is an option Automatic brace completion, in Tools > Options > Text Editor > All Languages > General > Automatic brace completion

The setting can also be enabled per language if you want that set only for a specific language.

Reference:
How to turn off brackets/quotes auto-completion in Visual Studio

K. B.
  • 3,342
  • 3
  • 19
  • 32