{
// tab 大小为2个空格
"editor.tabSize": 2,
// 字體大小
"editor.fontSize": 16,
// 設置行高
"editor.lineHeight": 25,
// 开启 vscode 文件路径导航
"breadcrumbs.enabled": true,
// 显示 markdown 中英文切换时产生的特殊字符
"editor.renderControlCharacters": true,
// 设置 eslint 保存时自动修复
"eslint.autoFixOnSave": true,
// 添加 vue 支持
"eslint.validate": [
"javascriptreact",
"vue",
"javascript",
{
"language": "vue",
"autoFix": true
},
"html",
{
"language": "html",
"autoFix": true
}
],
// #让函数(名)和后面的括号之间加个空格
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
// vetur 的自定义设置
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "auto"
}
},
"vetur.format.defaultFormatter.html": "prettyhtml",
// 控制换行的方式,取可视区宽度和编辑器设置折行列中较小值
"editor.wordWrap": "bounded",
// 设置编辑器的换行最小列数
"editor.wordWrapColumn": 150,
// 默认的格式化程序
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// 颜色配置
"editor.tokenColorCustomizations": {
"comments": "#858c99", // 注释
"keywords": "#c678dd", // 关键字
"variables": "#9fb2bf", // 变量名
"strings": "#98c379", // 字符串
"functions": "#e06c75", // 函数名
"numbers": "#d19a66" // 数字
},
// 选中高亮的颜色
"workbench.colorCustomizations": {
"editor.selectionBackground": "#4e8bda7e", //选中高亮
"editor.background": "#282c35", //背景色
"editorCursor.foreground": "#bebebe", //编辑器光标颜色
"editor.lineHighlightBackground": "#14524e", //光标所在行高亮内容的背景颜色
"editor.lineHighlightBorder": "#00000000", //光标所在行四周边框的背景颜色
"sideBar.background": "#21252b",
"sideBar.foreground": "#b3bccc",
"tab.inactiveBackground": "#21252b"
},
// eslint配置项,保存时自动修复错误
"editor.codeActionsOnSave": {
"source.fixAll": "explicit"
},
"gitlens.advanced.messages": {
"suppressCreatePullRequestPrompt": true,
"suppressGitVersionWarning": true
},
"files.autoSave": "onFocusChange",
//"workbench.colorTheme": "Monokai",
"vetur.completion.scaffoldSnippetSources": {
"workspace": "💼",
"user": "🗒️",
"vetur": "✌"
},
"cSpell.enabled": true,
"editor.fontLigatures": false,
"git.confirmSync": false,
"cssrem.rootFontSize": 120,
"workbench.startupEditor": "none",
"security.workspace.trust.untrustedFiles": "open",
"terminal.integrated.defaultProfile.windows": "Command Prompt",
"explorer.confirmDelete": false,
// 移除js语句的分号
"javascript.format.semicolons": "remove",
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
// 默认使用prettier格式化支持的文件
"editor.defaultFormatter": "esbenp.prettier-vscode",
// 让vetur使用vs自带的js格式化工具,以便在函数前面加个空格
"vetur.format.defaultFormatter.js": "vscode-typescript",
"editor.minimap.enabled": false,
"prettier.quoteProps": "preserve",
"vetur.validation.template": false,
// "workbench.colorTheme": "Monokai",
"launch": {
"configurations": [],
"compounds": []
},
"cssrem.wxss": true,
"liveServer.settings.donotShowInfoMsg": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"files.eol": "\n",
"workbench.editor.empty.hint": "hidden",
"cSpell.languageSettings": [],
"files.watcherExclude": {
" **/public/**": true,
"**/.cache/**": true
},
"vsicons.dontShowNewVersionMessage": true,
"editor.stickyScroll.enabled": false,
"git.openRepositoryInParentFolders": "always",
"vue.autoInsert.dotValue": true,
"git.ignoreRebaseWarning": true,
"diffEditor.ignoreTrimWhitespace": false,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[svg]": {
"editor.defaultFormatter": "jock.svg"
},
"explorer.confirmPasteNative": false,
"wxmlConfig.onSaveFormat": true,
"terminal.integrated.defaultProfile.osx": "",
"gitlens.defaultDateFormat": "",
"git-graph.defaultColumnVisibility": {
"Date": true,
"Author": true,
"Commit": true
},
"liveServer.settings.AdvanceCustomBrowserCmdLine": "",
"editor.formatOnSave": true,
"json.schemas": [],
//powser mode
"powermode.enabled": true,
//样式
// 火焰
// "powermode.presets": "flames",
// 炸裂
"powermode.presets": "exploding-rift",
// 爆炸
// "powermode.presets": "simple-rift",
// 粒子
// "powermode.presets": "particles",
// 烟花
// "powermode.presets": "flames",
// 魔法
// "powermode.presets": "magic",
// 回形针
// "powermode.presets": "clippy",
// 时间间隔
"powermode.combo.timeout": 1,
// 抖动
"powermode.shake.enabled": false,
"prettier.endOfLine": "crlf",
"redhat.telemetry.enabled": true,
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml"
},
"typescript.updateImportsOnFileMove.enabled": "never",
"python.defaultInterpreterPath": "D:\\python\\python.exe",
"workbench.settings.applyToAllProfiles": [
],
"eslint.format.enable": true,
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
}