SublimeText 自带格式化代码功能

其实sublime自身就有格式化命令,就不再安装插件,位置在[Preferences]->[Key Bindings]->[User]中,   中文版的位置在  [首选项]->[按键绑定-用户],弹出的页面中

,添加如下代码,为其设置快捷键:Ctrl+Shift+g

{
 "keys": ["ctrl+shift+g"],
 "command": "reindent", 
 "args": {
    "single_line": false
    }
}
原文地址:https://www.cnblogs.com/cqlb/p/9641306.html