When I write code, Visual Studio itself after} corrects all the brackets with a break to another line.

if (1) { code(); } 

VS fixes the code (C #) on:

 if (1) { code(); } 

Yes, this is important, the place is not saved.

  • What is your question? From the written it is not clear which version you want to receive. - AnT
  • one
    These are code-writing conventions adopted for the .net platform. If you plan to further develop in this direction, you will have to get used to it. - dmepty
  • four
    But if you really really want it straight, Tools => Options => Text Editor => C# => Code Style => Formating => New Lines - dmepty
  • one
    If you need to save space, write this: if (1) code(); Generally one line - Egor Trutnev
  • 3
    "Yes, this is important, space is not saved." - if you do not want to write in the BrainFuck style, then you should not save space at all, but on the contrary, you should even insert specially blank lines between the semantic blocks of code. According to statistics, the code is read more often than they are writing, and therefore the readability of the code is very important, yes, you yourself will soon realize if you start writing a more or less serious big project. - Bulson

0