插件下载地址:https://gist.github.com/2863474插件,可以将CSS格式化成一行,也可以将一行格式化成多行。下载解压缩之后,将compact_expand_css_command.py放到*\Sublime Text 2\Packages\User然后,重启一下st2,选择Preferences>Key Bindings - User加入以下代码:{ "keys": ["ctrl+shift+]"], "command": "compact_expand_css", "args": { "action": "expand" } },{ "keys": ["ctrl+shift+["], "command": "compact_expand_css", "args": { "action": "compact" } }保存,现在再试一下就OK啦!