JS/TS indentation of 2nd and further line of if expression
Hi,
in Java, in IntelliJ IDEA I get by default indentation on 2nd line of continuous if expression is doubled and I like it this way:
if (i == 1 ||
i == 2) {
return true;
}
I am unable to achieve the same thing in JS/TS (IntelliJ IDEA, but I believe it's the same in WebStorm), I'm getting:
if (i == 1 ||
i == 2) {
return true;
}
Is there a configuration option for this, please?
Thanks,
A.
Please sign in to leave a comment.
No way to do this currently, please vote for https://youtrack.jetbrains.com/issue/WEB-32686 and linked tickets to be notified when it's fixed
I will, thank you
Oh, that's a ticket from 2012. It hasn't been implemented in 9 years, hardly going to change in the future :-(