Visual stduio does not accept my config

Eduardo Gomez 3,196 Reputation points

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


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

    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.

    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.