When I type
if (something) { *press Enter*
Visual Studio automatically moves the { to the next line. I tried to disable it via config but found anything but this option.
I basically want so that this
if (true)
{
int m = 3;
}
turns into this
if (true) {
int m = 3;
}
How to do it?
>Solution :
You can change the open brace to appear on the same line by unselecting the option "Place open brace on new line for types" in Visual Studio.
Tools > Options dialog box > Text Editor > C# > Code Style > Formatting
