1. 打开setting
首选项 > 设置 > 输入setting搜索

2. 设置setting
在setting文件中添加如下
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
"eslint.validate": ["javascript", "vue", "html"]
首选项 > 设置 > 输入setting搜索
在setting文件中添加如下
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
"eslint.validate": ["javascript", "vue", "html"]
本文标题:vscode保存时自动eslint格式化
本文链接:https://www.haomeiwen.com/subject/pfpwurtx.html
网友评论