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
}
]

posted on 2018-07-18 17:15  马什么梅  阅读(467)  评论(0编辑  收藏  举报

导航