參照這裏:https://packagecontrol.io/packages/Gutter%20Color css
1. 安裝imagemagic
brew install imagemagick --with-xz --with-font-config --with-little-cms --with-little-cms2
2. command pallete中安裝gutter color
user settings中設置支持的文件類型(默認支持css,less,sass,xml等選項因此無需設置)
和covert命令的路徑(默認設置爲/usr/bin/convert)我改爲了/usr/local/bin/convert
3. 打開任意帶顏色值的css或less文件,發現並未在gutter處顯示顏色。。。解決辦法:
Preferences > Color Scheme > Color Scheme - Default > Monokai就能夠了 (發現這個插件默認選擇了它自帶的color scheme因此。。)
最終的樣子以下:
sass