Reputation: 11
I'm not sure if it's a bug or under-developed but my Visual Studio 2022 Intellicode does not automatically add closing braces (both on suggestion & format on save).
I do have Automatic brace completion enabled in the options but this does not solve the current issue.
Is there a way to fix this?
Upvotes: 1
Views: 138
Reputation: 4247
This issue is currently being investigated by Developer Community.
You haven't completed the code after {
,
for example:
int[] array = new int[] { 5 };
for (int i = 0; i < array.Length; i++) {
Then input console.
It will complete the brace.
Error report: There are issues with Intellicode in VS2022, you can follow this thread and post your comments to get Microsoft's attention.
IntelliCode Suggestion Issue: Block Code Not Closed Automatically
Upvotes: 1