Best source code formatter for Javascript? [closed]

吃可爱长大的小学妹 提交于 2019-11-27 22:56:29

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

You can also customize the formatting.

3zzy

This is by far the best I've come across: http://jsbeautifier.org/

Available as an online tool, or on the command-line using node.js or python. The source code is available.

If you already use Eclipse, I recommend you to try Aptana, you can install it as an Eclipse Plugin.

Peter

If you also need Java programming I can recommend 'IntelliJ IDEA'

It offers excellent JavaScript formatting and refactoring out of the box.

Have you tried jsfiddler. It's great for trying things out with Javascript. Built in JSLint & something called Tidy. Not sure whether that infers jstidy Piotr Zalewa is the guy who wrote it. May be worth giving him a Tweet @zalun to confirm.

If you are using notepad++, you can try jsminnpp plugin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!