1.下载eslint.

2.首选项->设置,然后搜索eslint,点击在setting.json中设置.设置内容如下:

"editor.codeActionsOnSave": {
        "source.fixAll.eslint": true,
    }

接着在保存时就能按照eslint的标准格式化代码

相关文章:

  • 2021-05-04
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-07-22
  • 2022-01-09
猜你喜欢
  • 2021-06-24
  • 2022-02-17
  • 2021-10-24
  • 2022-12-23
相关资源
相似解决方案