- setting.json配置
// #每次保存的时候自动格式化
"editor.formatOnSave": true,
"editor.formatOnType": true,
// #每次保存的时候将代码按eslint格式进行修复
"eslint.autoFixOnSave": true,
"eslint.format.enable": true,
- 需要安装的vscode插件
- Eslint
- Prettier ESLint
- Vetur
// #每次保存的时候自动格式化
"editor.formatOnSave": true,
"editor.formatOnType": true,
// #每次保存的时候将代码按eslint格式进行修复
"eslint.autoFixOnSave": true,
"eslint.format.enable": true,
本文标题:vscode 使用eslint(保存自动格式化)
本文链接:https://www.haomeiwen.com/subject/eqvvvrtx.html
网友评论