Code formatting settings

What code reformat settings I must set to accomplish this reformatting
scenario:
In simplest "if" statements ("if" only and single line statement code) the
statement code will stay on the same line.

if (this.name != obj.name) return true;

not

if (this.name != obj.name)
return true;

I have the dumb HasChanges(obj) method which incudes a tons of this simplest
"if" statements.

Kind regards,
Evgeny Bobrov.


1 comment
Comment actions Permalink

Hi Evgeny,

Thank you for the report.

Currently CodeFormatter does not support this.
This functionality is planned and I hope will be implemented in build 83.

--
---
Eugene Pasynkov
Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
"Evgeny Bobrov" <dr_dest@ukr.net> wrote in message
news:c8vu9o$hmb$1@is.intellij.net...

What code reformat settings I must set to accomplish this reformatting
scenario:
In simplest "if" statements ("if" only and single line statement code) the
statement code will stay on the same line.

>

if (this.name != obj.name) return true;

>

not

>

if (this.name != obj.name)
return true;

>

I have the dumb HasChanges(obj) method which incudes a tons of this

simplest

"if" statements.

>

Kind regards,
Evgeny Bobrov.

>
>


0

Please sign in to leave a comment.