英文版:
打开Sublime软件 PreFerences —> Key Bindings -User 如图
添加代码:{“keys”: [“alt+shift+f”], “command”: “reindent”}
保存即可。(alt+shift+f)可以自己改为任意键的组合
中文版:
打开Sublime软件 首选项 —> 按键绑定—用户 如图
添加代码:{“keys”: [“alt+shift+f”], “command”: “reindent”}
保存即可。(alt+shift+f)可以自己改为任意键的组合
之后就可以愉快的先全选,再按快捷键去格式化代码啦!!!