Visual Studio indents braces in case like this:
switch(variable)
{
case 0:
{
// some code
break;
}
}
However I would like it better without indentation:
switch(variable)
{
case 0:
{
// some code
break;
}
}
I was looking through the options, but didn't find the one I want. Did I miss it or is it just not there?
Under Visual Studio
Options >> TextEditor >> C# >> Code Style >> Formatting >> Indentation
is what you are looking for. You will see several options under that menu and set your settings as you wish. In this case, the setting is called "Indent case contents".
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