webstorm 保存自动格式化

1、先全局安装prettier

npm i -g prettier

2、webstorm内设置如下