Sublime Text 格式化代码快捷键

 

Sublime Text 中本身有格式化按钮:

Edit  ->  Line  ->  Reindent  

但是默认没有设置快捷键。

 

设置快捷键方式为

Preference  ->  Key Bindings -user 

打开用户快捷键绑定设置添加(比如添加:ctrl + alt +j)

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

—— 完 ——