Reformat - Line Breaks
Answered
The IDE setting:
"Editor > Code style > java > wrapping & braces > Keep when reformatting - Line Breaks"
When i uncheck it, it allows me to remove 'useless' line breaks in my code, according to the code style settings. but it also removes new line after variable declaration and before return statement.
As you can notice, declaration and try got merged on same line. same with return statement and closing `}`.
Flow flow = null; try {
} return flow;
Any pointer to resolve this would be helpful. Thank you :)
Please sign in to leave a comment.
Can't reproduce. May you try to export your code style (to back up and share if needed) and reset it to default (https://i.imgur.com/HJ7qxOK.png).
This way, we could understand if a customization caused that.
IF restoring does not fix the case, please share a sample code snippet as a text
Thank you so much for help Konstantin Annikov. please find attached code style and code snippet.
Untick "Multiple expressions in one line"
Thank you so much :)