How to set Astyle so that it does not format two braces on the same line

131 views Asked by At

When encountering the following code,

while(c >= '0' && c <= '9') {x = x * 10 + c - 48; c = getchar();}

Astyle will format it to

while(c >= '0' && c <= '9') {
    x = x * 10 + c - 48;
    c = getchar();
}

I don't want this to happen.

So how to set Astyle so that it does not format two braces on the same line?

0

There are 0 answers