{
// 主题颜色 浅色主题
"workbench.colorTheme": "Visual Studio Dark",
// tab 大小为2个空格
"editor.tabSize": 2,
// 100 列后换行
"editor.wordWrapColumn": 100,
// 保存时格式化
"editor.formatOnSave": true,
// 开启 vscode 文件路径导航
"breadcrumbs.enabled": true,
// #让prettier使用eslint的代码格式进行校验
"prettier.eslintIntegration": true,
// #让函数(名)和后面的括号之间加个空格
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
// prettier 设置语句末尾不加分号
"prettier.semi": false,
// prettier 设置强制单引号
"prettier.singleQuote": true,
//禁止随时添加逗号,这个很重要。找了好久
"prettier.trailingComma": "none",
// 选择 vue 文件中 template 的格式化工具
"vetur.format.defaultFormatter.html": "prettyhtml",
// 显示 markdown 中英文切换时产生的特殊字符
"editor.renderControlCharacters": true,
// 设置 eslint 保存时自动修复
"eslint.codeActionsOnSave": true,
//是否开启vscode的eslint
// "eslint.enable": true,
// eslint 检测文件类型
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue"
],
"editor.tokenColorCustomizations": {
"comments": "#cccccc7e", // 注释
"keywords": "#c7bc99", // 关键字
"variables": "#04a59d", // 变量名
"strings": "#e2d75dbd", // 字符串
"functions": "#5b99fcc9", // 函数名
"numbers": "#AE81FF", // 数字
"types": "#faa755" // 类型
},
// 选中高亮的颜色
"workbench.colorCustomizations": {
"[Quiet Light]": {
"editor.foreground": "#201515",
"editor.selectionHighlightBorder": "#94767c00",
"editor.selectionHighlightBackground": "#ff000078",
"editorIndentGuide.activeBackground": "#81868d",
"editorBracketMatch.background": "#ca9fdb5e",
"editorBracketMatch.border": "#ff0000",
"tab.activeBackground": "#ad9cd4b2",
"textLink.foreground": "#d6561ac4",
"descriptionForeground": "#ff0000",
"selection.background": "#b98cd693",
"textBlockQuote.background": "#b89a9a",
"textSeparator.foreground": "#86c2df"
},
},
// vetur 的自定义设置
"vetur.format.defaultFormatterOptions": {
"prettier": {
"singleQuote": true,
"semi": false,
//禁止随时添加逗号,这个很重要。找了好久
"trailingComma": "none"
},
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"files.associations": {
"*.cjson": "jsonc",
"*.wxss": "css",
"*.wxs": "javascript"
},
"emmet.includeLanguages": {
"wxml": "html",
"vue-html": "html",
"javascript": "javascriptreact"
},
"minapp-vscode.disableAutoConfig": true,
"eslint.migration.2_x": "off",
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.autoSave": "afterDelay",
"editor.detectIndentation": false,
"editor.wordWrap": "on",
"editor.quickSuggestions": {
"strings": true
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.sideBar.location": "right",
"window.menuBarVisibility": "compact",
"git.confirmSync": false,
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"git.autofetch": true,
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"markdown-preview-enhanced.automaticallyShowPreviewOfMarkdownBeingEdited": true,
"liveServer.settings.donotShowInfoMsg": true,
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"liveSassCompile.settings.formats": [
{
"format": "expanded",
"extensionName": ".css",
"savePath": null
}
],
"vetur.validation.template": false,
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"npm.exclude": "",
"npm.packageManager": "npm",
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"javascript.updateImportsOnFileMove.enabled": "always",
"tabnine.experimentalAutoImports": true,
"powermode.enabled": true,
"todo-tree.highlights.defaultHighlight": {},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.language.brackets": false
}
`