I am using Eclipse JSDT and the default formatting settings change something like
var a = 1,
b = 2;
to be on one ugly line.
The style before formatting is recommended by JSLint, so I am wondering can Eclipse be set to format it this way? The existing formatter settings does not offer controls over the comma statement it seems.
Following JavaScript Beautifier plug-in is available for Eclipse.
https://github.com/atlanto/eclipse-javascript-formatter
It can be used to span single statement - multiple variable declarations into multiple lines.
More information about using the above plug-in is given in the README.md
file.
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