Formatting condition

Currently the following is formatted as this:

if (someCondition == true) thenDoThisMethod();

I would like the method following the condition to be on its own line. I can't figure out how to do this:

if (someCondition == true)
thenDoThisMethod(); (the http post does not show this line's leading indentation)

Thanks, Lars

1 comment

Hello,

Currently the following is formatted as this:

if (someCondition == true) thenDoThisMethod();

I would like the method following the condition to be on its own line.
I can't figure out how to do this:

if (someCondition == true)
thenDoThisMethod(); (the http post does not show this line's
leading indentation)


There's definitely an option for that under Formatting Settings in R# Options.
Don't remember the exact name, though. Anyway a walk thru all of the options
is a must, at least once a new major version ;)


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.