vscode vue eslint 快捷键格式化代码

添加vetur , eslint插件
 
在工作区添加以下代码
 
"workbench.startupEditor": "welcomePage",
"vetur.format.defaultFormatter.js": "vscode-typescript",
//"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"editor.quickSuggestions": {
"strings": true
},
"editor.tabSize": 2,
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue",
{
"language": "html",
"autoFix": true
}
]

猜你喜欢

转载自www.cnblogs.com/z45281625/p/9330422.html