force if statement in two lines
Hey,
I'm looking for the exact opposite of this request in typescript. I would like to force if statments without braces to have the statement in a new line.
Code is:
if(something) return 0;
Code should be autoformatted to:
if(something)
return 0;
Please sign in to leave a comment.
Unfortunately there are no such settings at the moment.
You can add line breaks manually and then enable the Keep when reformatting > Line breaks in Settings | Editor | Code Style | JavaScript | Wrapping and Braces to preserve them