preference>>key bindings-user>>编辑设置文档,

输入 { "keys": ["ctrl+q"], "command": "reindent" },

保存,然后快捷键ctrl+q就可以自动帮你整理代码了,

在整理前ctrl+a全选。

相关文章: