force if statement in two lines

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:

    return 0;
1 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


Please sign in to leave a comment.