I'm using Visual Studio IDE 2022, Parentheses completion is not working correctly. For example, I want to write:
Foo(Boo());
but result is:
Foo(Boo(); - one brace is missing.

I have checked and unchecked "Automatic brace completion" but it does not help.
By the way VSCode does this job correctly:

If you want this problem to be solved please vote here: Autocompleteofparenthesesisbroken
This extension fixes the problem:
Auto Close & Surround Punctuations
To avoid errors, be sure to disable the default behavior of Visual Studio. Go to "Menu > Tools > Options", find these options and uncheck the box:
"Automatic brace completion"
and
"Automatically surround selection when typing quotes or brackets"
Seems it is an old problem because the same problem was with C++.
I think for C++ the problem was solved but C# was forgotten.
If you want this problem to be solved for C# in Visual Studio IDE please vote here:
Autocompleteofparenthesesisbroken
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With