This question is locked. New answers and comments are not allowed.
I would like my if or if-else blocks, if they are single-line, to be formatted without curly brackets. I see many settings that seem to imply they would do this, but I cannot get them to produce the right result. Can you please point me to the exact settings I would need to set to get this to happen.
I would like it to format from:
namespace
MyNS
{
class
Class1
{
public
Class1(
int
a)
{
if
(a > 4)
{
a += 4;
}
if
(a > 4)
{
a += 4;
a += 5;
}
}
}
}
to
namespace
MyNS
{
class
Class1
{
public
Class1(
int
a)
{
if
(a > 4)
a += 4;
if
(a > 4)
{
a += 4;
a += 5;
}
}
}
}