{
"workbench.iconTheme": "vscode-icons",
"px2rem.rootFontSize": 192,
"workbench.colorTheme": "One Dark Pro Darker",
"explorer.confirmDelete": false,
"editor.maxTokenizationLineLength": 9999999999999999999999999999999,
"editor.tabSize": 2, // 制表符符号 eslint
"editor.formatOnSave": true, // 每次保留⾃动格式化
"javascript.format.insertSpaceBeforeFunctionParenthesis": true, // 让函数 (名) 和后⾯的括号之间加个空格
"vetur.format.defaultFormatter.html": "js-beautify-html", // 格式化.vue 中 html
"vetur.format.defaultFormatter.js": "vscode-typescript", // 让 vue 中的 js 按编辑器⾃带的 ts 格局进⾏格式化
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {"wrap_attributes": "auto" // 属性强制折⾏对齐}
},
"editor.codeActionsOnSave": {"source.fixAll.eslint": true},
"eslint.options": {
"extensions": [
".js",
".vue"
]
},
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue"
]
}
vscode 插件 ESLint , JavaScript Debugger