Where is the code style option to keep simple method in one line?

Was there something like that at one point? Where did it go?

public void setI(int i) {
this.i = i;
}

would become

public void setI(int i) {this.i = i;}

Jacques

2 comments

There was a settings to KEEP simple methods in one line (on General tab of
code style settings). But it only preserves methods which are already
written in one line. AFAIK code formatter never puts into one line a method
which used to span on multiple lines.


--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Jacques Morel" <jacmorel@yahoo.com> wrote in message
news:18674100.1075666411372.JavaMail.itn@is.intellij.net...

Was there something like that at one point? Where did it go?

>

public void setI(int i) {
this.i = i;
}

>

would become

>

public void setI(int i) {this.i = i;}

>

Jacques



0

I guess it does it by default hence you removing the option right? Make sense now.

I guess I will file a request to REFORMAT these one liner methods to have their braces on the same line like I showed before.

Thanks Valentin

Jacques

0

Please sign in to leave a comment.