{
"window.zoomLevel": 1,
"liveServer.settings.donotShowInfoMsg": true,
"editor.tabSize": 2,
"editor.tabCompletion": "on",
"editor.fontSize": 16,
"git.autofetch": true,
"editor.stickyScroll.enabled": false,
"editor.guides.bracketPairs": "active",
"editor.guides.bracketPairsHorizontal": false,
"editor.accessibilitySupport": "off",
"workbench.iconTheme": "material-icon-theme",
"editor.linkedEditing": true,
"workbench.colorTheme": "Monokai",
// prettier格式化配置
"prettier.singleQuote": true,
"prettier.semi": false,
"prettier.printWidth": 120,
"prettier.trailingComma": "none",
"prettier.arrowParens": "always",
// 保存时自动格式化代码
// "editor.formatOnSave": true,
// eslint配置项,保存时自动修复错误
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
// react相关配置
"emmet.triggerExpansionOnTab": true,
"emmet.showAbbreviationSuggestions": true,
"emmet.includeLanguages": {
// jsx的提示
"javascript": "javascriptreact",
// "vue-html": "html",
// "vue": "html",
"wxml": "html"
},
// Path Intellisense插件路径提示
"path-intellisense.mappings": {
"@": "${workspaceRoot}/src",
"~@": "${workspaceRoot}/src"
},
// rem的配置
"cssrem.rootFontSize": 37.5,
// Easyless配置
"less.compile": {
"compress": false, //** 是否删除多余空白字符
"sourceMap": false, //** 是否创建文件目录树,true的话会自动生成一个 .css.map 文件
"out": "../styles/" //** 输出css文件目录,false为不输出
},
"hediet.vscode-drawio.resizeImages": null,
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}