当前位置: 代码迷 >> 综合 >> vscode eslint自动格式化代码
  详细解决方案

vscode eslint自动格式化代码

热度:69   发布时间:2023-11-30 22:49:41.0
{"editor.codeActionsOnSave": {"source.fixAll.eslint": true},"eslint.format.enable": true,//autoFix默认开启,只需输入字符串数组即可"eslint.validate": ["javascript","vue","html"],
}

在setting.js里添加以上配置,简单有效