Reputation: 2209
This is the output of reformat code option from intellij (alt + command + L)
int i = Main.someRandomFuntion("arg1",
"arg2",
"arg3", "arg4",
someRandomFunction2("arg1",
"arg2"),
"arg6");
and what i need this is
int i = Main.someRandomFuntion("arg1",
"arg2",
"arg3", "arg4",
someRandomFunction2("arg1",
"arg2"),
"arg6");
which is just more an aesthetic improvement.
Do intellij (I am using 15) support an option to tweak auto format option ?, if so How can i do it ?
Upvotes: 1
Views: 181
Reputation: 6139
Open Settings with Ctrl+Alt+S.
Go to:
Editor > Code Style > Java
Click on the Wrapping and Braces
tab, scroll down to Method declaration parameters
and change the settings there to what you desire.
Note: I found these particular Settings a little glitchy when I was toggling them but you can usually get what you want with a couple of minutes of fiddling and testing.
Upvotes: 1