最好的 Javascript 源代码格式化程序?

发布于 2024-07-10 13:39:43 字数 1557 浏览 10 评论 0 原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

去了角落 2024-07-17 13:39:43

这是迄今为止我遇到的最好的: http://jsbeautifier.org/

作为在线工具提供,或者在命令行上使用 node.js 或 python。
源代码已提供

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.

生来就爱笑 2024-07-17 13:39:43

一口气:Aptana Studio! 是的,它是基于 Java 的并且免费(Eclipse,作为独立或插件)。

您还可以自定义格式

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

You can also customize the formatting.

听不够的曲调 2024-07-17 13:39:43

如果您已经使用Eclipse,我建议您尝试Aptana,您可以安装它作为 Eclipse 插件。

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

作死小能手 2024-07-17 13:39:43
债姬 2024-07-17 13:39:43

如果您还需要 Java 编程,我可以推荐 'IntelliJ IDEA'

它提供了出色的 JavaScript 格式化和重构盒子的。

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

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

如梦初醒的夏天 2024-07-17 13:39:43

您尝试过 jsfiddler 吗? 它对于尝试使用 Javascript 非常有用。 内置 JSLint 和 一个叫做“整洁”的东西。 不确定这是否可以推断出 jstidy Piotr Zalewa 是它的作者。 也许值得给他发一条推文 @zalun 进行确认。

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.

a√萤火虫的光℡ 2024-07-17 13:39:43

如果你使用的是notepad++,你可以尝试jsminnpp插件

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文