Sublime 自定义格式化快捷键

其实sublime自身就有格式化命令,就不再安装插件了,位置在[Edit]->[Line]->[Reindent]

但这个默认的命令没有快捷键,就重新定义了一下,用习惯了的Netbeans快捷键客串了一下:Alt+Shift+F

[Preferences]->[Key Bindings]->[User]中,添加如下:

 { "keys": ["alt+shift+f"], "command": "reindent" }

原文地址:https://www.cnblogs.com/zfying/p/2859271.html