- 实在sublime中已经自建了格式化按钮:
Edit —> Line —> Reindent
- 只是sublime并没有给他赋予快捷键,所以只需加上快捷键即可
Preference —> Key Bindings -user (首选项—>快捷键设置)
中 括号内添加(比如添加:ctrl + alt + l (和idea编辑器保持一致)
{ "keys": ["ctrl+alt+l"], "command": "reindent" }
Edit —> Line —> Reindent
Preference —> Key Bindings -user (首选项—>快捷键设置)
中 括号内添加(比如添加:ctrl + alt + l (和idea编辑器保持一致)
{ "keys": ["ctrl+alt+l"], "command": "reindent" }