This question is locked. New answers and comments are not allowed.
Hi JustCode team/community,
I'd like to suggest addressing the code formatting issue for block usage with one or more comment lines and a single line statement.
Currently, e.g. for if-else options "Always except for single line statement" or "Only if necessary" JC formats from:
to
The desired results is below, i.e. treat the comment line(s) as a statement line:
I'd like to suggest addressing the code formatting issue for block usage with one or more comment lines and a single line statement.
Currently, e.g. for if-else options "Always except for single line statement" or "Only if necessary" JC formats from:
namespace MyNS{ class Class1 { public Class1(int a) { if (a > 4) { a += 4; } if (a > 4) { // signle comment line a += 4; } if (a > 5) { // comment line 1 // comment line 2 // comment line 3 // comment line 4 // comment line 5 // comment line 6 a += 5; } } }}to
namespace MyNS{ class Class1 { public Class1(int a) { if (a > 4) a += 4; if (a > 4) // signle comment line a += 4; if (a > 5) // comment line 1 // comment line 2 // comment line 3 // comment line 4 // comment line 5 // comment line 6 a += 5; } }}The desired results is below, i.e. treat the comment line(s) as a statement line:
namespace MyNS{ class Class1 { public Class1(int a) { if (a > 4) a += 4; if (a > 4) { // signle comment line a += 4; } if (a > 5) { // comment line 1 // comment line 2 // comment line 3 // comment line 4 // comment line 5 // comment line 6 a += 5; } } }}