Does intellij have an option to align javascript variable declarations like so
var x = "x",
yyyy = "y";
Note that the =
are aligned neatly. I can't find an option to do that....worse, if I do it by hand, and then format the file, I lose the alignment on the =
.
IDEA11 can definitely align javascript properties - see the Other tab on the Javascript code style.
In the Java code style options there is Wrapping and Braces - Field groups - Align in columns.
However, for js variables you might have to resort to a plugin.
Try DefinitionEqualizer.
Editor > Code Style > Javascript > 'Other' tab
Formatting options:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With