sublime中自建的有格式化按钮: Edit -> Line -> Reindent 只是sublime并没有给他赋予快捷键,所以只需加上快捷键即可 Preference -> Key Bindings -user 打开用户快捷键绑定设置添加(比如添加:ctrl + alt +a) { "keys": ["ctrl+alt+a"], "command": "reindent" }, //注意不要忘记加逗号 相关文章: 2022-12-23 2022-01-14 2021-12-11 2022-03-02 2021-05-26