我的 vs code 中setting 设置
{
"workbench.editor.closeEmptyGroups": false,
"emmet.triggerExpansionOnTab": true,
"files.associations": {
"*.vue": "html",
"*.css": "scss",
".eslintrc": "json",
"*.wpy": "vue",
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript"
},
"emmet.includeLanguages": {
"javascript": "javascriptreact",
"wxml": "html"
},
"window.zoomLevel": -1,
"workbench.sideBar.location": "right",
"files.autoSave": "afterDelay",
// 換行
// "editor.wordWrap": "on",
// 代码缩进修改成4个空格
"editor.tabSize": 2,
//保存的时候自动格式化
"editor.formatOnSave": false,
// 字體大小
"editor.fontSize": 14,
// 設置行高
"editor.lineHeight": 22,
"typescript.check.tscVersion": false,
"typescript.updateImportsOnFileMove.enabled": "always",
"git.confirmSync": false,
"editor.minimap.enabled": true,
"workbench.startupEditor": "newUntitledFile",
"git.autofetch": true,
"eslint.validate": [
"javascript",
"javascriptreact",
"vue"
],
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"vetur.validation.template": true,
"vetur.format.enable": true,
"vetur.format.defaultFormatter.js": "none",
"vetur.format.defaultFormatter.html": "js-beautify-html",
"prettier.singleQuote": true,
"prettier.semi": false,
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"workbench.settings.editor": "json",
"vetur.format.defaultFormatter": {
"html": "prettier",
"css": "prettier",
"postcss": "prettier",
"scss": "prettier",
"less": "prettier",
"js": "prettier",
"ts": "prettier",
"stylus": "stylus-supremacy"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"minapp-vscode.disableAutoConfig": true,
"[wxml]": {
"editor.defaultFormatter": "qiu8310.minapp-vscode"
}
}