我正在寻找用于 sublime text 2 的格式化/缩进工具,它在 ctrl+s
上会变成以下代码
if(a==2){b=a+2;}
类似于
if(a == 2) {
b = a + 2;
}
我找不到任何有用的东西。请帮忙。
最佳答案
您可以使用 JsFormat
JsFormat is a JavaScript formatting plugin. Behind the scenes, it uses the command line formatter from jsbeautifier.org to format full or portions of JavaScript and JSON files.
关于javascript - sublime 文本的排版工具,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37283688/