BennoDual
BennoDual

Reputation: 6269

Visual Studio Intellicode does not add closing curly brace

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?

Upvotes: 1

Views: 199

Answers (1)

K. B.
K. B.

Reputation: 3690

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

Upvotes: 0

Related Questions