我的 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"
}
}
标签:code,vscode,html,defaultFormatter,vs,editor,true,setting,prettier 来源: https://www.cnblogs.com/itcast-guoke/p/12839748.html