插件
需要安装Vetur+Eslint插件,然后注意eslint的提醒,如果缺少全局插件,需要npm安装;
首选项设置
{
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
],
"git.autofetch": true,
"eslint.options": {},
"vetur.validation.template": false,
"window.zoomLevel": 1,
"editor.formatOnSave": false,
}
原文地址:https://www.cnblogs.com/zzayne/p/9124285.html
时间: 2024-10-11 23:32:40