WebStorm stylelint 自动修复
先配置 stylelint
File | Settings | Languages & Frameworks | Style Sheets | Stylelint
配置 External Tools
全局安装 stylelint
npm i stylelint -g
File | Settings | Tools | External Tools
添加下图配置
C:\Users\XXX\AppData\Roaming\npm\stylelint.cmd
$FileName$ --fix
$FileDir$
设置快捷键
File | Settings | Keymap | External Tools | External Tools
如图