Sublime 格式化代码 快捷键以及插件使用

其实在sublime中已经自建了格式化按钮:

Edit  ->  Line  ->  Reindent  

只是sublime并没有给他赋予快捷键,所以只需加上快捷键即

Preference  ->  Key Bindings -user 

中 括号内添加(比如添加:ctrl + alt + f)

 { "keys": ["ctrl+alt+f"], "command": "reindent" }

原文地址:https://www.cnblogs.com/zhangyongjian/p/3647572.html