Eslint 与Prettier 在网上找了好久没找到合适的配置。下面是我配置好的。

首先找到配置文件,文件 -> 首选项 -> 设置 -> 点击箭头,如下配置就ok

Vs code中Eslint 与 Prettier格式化冲突

 

 

{
  "[vue]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[javascript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "[html]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  },
  "window.zoomLevel": 1
}

 

相关文章:

  • 2021-07-22
  • 2021-09-27
  • 2022-12-23
  • 2021-11-09
  • 2022-12-23
  • 2021-04-08
  • 2022-12-23
猜你喜欢
  • 2021-04-11
  • 2021-12-28
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
  • 2021-10-23
相关资源
相似解决方案