Visual stduio does not accept my config

Eduardo Gomez 3,196 Reputation points
2022-07-09T14:11:46.233+00:00

I wouldn't say I like bracket different line, so I went to Options and changed it

219030-image.png

for some reason, it doesn't work

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,401 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 23,136 Reputation points Microsoft Vendor
    2022-07-12T09:44:40.293+00:00

    Hi @Eduardo Gomez ,

    Please update your VS2022 to the latest version and go to Tools > Options > Text Editor > C# > Code Style > Formatting > Wrapping > check the “Leave block on single line”.

    If it doesn’t work, please reset the vs settings and try again.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.