CodeFormatter
适用于ST2、ST3,支持代码类型:
- PHP - By phpfmt
- JavaScript/JSON - By JSBeautifier
- HTML - By JSBeautifier
- CSS - By JSBeautifier
- SCSS - By Nishutosh Sharma
- Python - By PythonTidy (only ST2)
- Visual Basic/VBScript
- Coldfusion/Railo/Lucee
增加对Java代码的支持
在Packages\sublimetext-codeformatter下
打开文件CodeFormatter.sublime-settings
,找到codeformatter_js_options
,在syntaxes
字段中加入java
,建议将preserve_newlines
,format_on_save
改为true
。现在可以试试啦。