大家安装了格式化Prettier插件后,一格式化发现代码变成了如下样式

image.png

解决办法:在项目文件夹下新增.prettierrc文件,添加如下配置
  "htmlWhitespaceSensitivity": "ignore"

完美解决!


trueYann
4 声望0 粉丝