Skip to content
Advertisement

Best source code formatter for Javascript? [closed]

I’ve been digging through Stack Overflow as well as a number of Google searches, and I cannot find a satisfactory code formatter for JavaScript.

I have found several related tools, such as syntax highlighters and pretty-printers, but I am looking for a tool that I can ideally create a wrapper for in Eclipse and simply run from the menu bar. Hence, if any Java-based ones are available, that is a big plus. Free and/or open-source is preferred as well.

I am looking for something that my development group can use to maintain a consistent code style.

Edit: Thanks to kRON for linking to the format customizations page.

Edit: Related question on Stack Overflow.

Advertisement

Answer

In one breath: Aptana Studio! Yes, it’s Java based and free (Eclipse, as standalone or plugin).

You can also customize the formatting.

Advertisement