{
"vsicons.dontShowNewVersionMessage": true,
"workbench.activityBar.visible": true,
"workbench.statusBar.visible": true,
"workbench.colorTheme": "The Best Theme", // 编辑器初始界面
"workbench.tree.indent": 12,
"workbench.list.horizontalScrolling": true,
"workbench.list.keyboardNavigation": "simple",
"workbench.fontAliasing": "auto",
"workbench.iconTheme": "material-icon-theme",
"workbench.tree.renderIndentGuides": "always",
"workbench.editor.tabCloseButton": "right",
"workbench.colorCustomizations": {
// 活动栏颜色
"activityBar.background": "#151c21",
"activityBar.foreground": "#00ffff",
// "activityBar.inactiveForeground": "#383e41",
// 标题栏颜色设置
"titleBar.activeBackground": "#fffef9",
"titleBar.inactiveBackground": "#fffef9", // 失去焦点时titlebar颜色
// "editor.lineHighlightBackground": "#E8DFC4", //代码选中高亮颜色
// "editor.selectionBackground": "#BCD68D", // 代码选中的背景色
// "editorIndentGuide.background": "#cecdc2", // 代码对齐线颜色
"editorCursor.foreground": "#528bff", // 光标颜色
"editor.background": "#282c34", // 编辑区背景色
"editorLineNumber.foreground": "#495162", // 行号颜色
"editorGutter.background": "#282c34", // 行号区域背景色
"editor.parameterHints": true,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
// 选项卡(标签)颜色设置
"tab.activeModifiedBorder": "#41A863",
"tab.hoverBackground": "#0e1214",
"tab.border": "#444",
"tab.activeForeground": "#fff",
"tab.activeBackground": "#282c34",
"tab.activeBorder": "#282c34",
"tab.hoverBorder": "#282c34",
// "tab.inactiveBackground": "#fffae8",
// "tab.inactiveForeground": "#41A863",
// 侧边栏颜色设置
// "sideBarSectionHeader.background": "#FFFAE8",
// "sideBarSectionHeader.foreground": "#AB7E05",
// "sideBar.border": "#d8ca9e", // 侧边栏与编辑区中间的竖线
// "sideBar.foreground": "#46433c", // 文件名称颜色
"sideBarTitle.foreground": "#46433c", // 标题颜色
// 底部状态栏颜色设置
// "statusBar.background": "#b4ad99",
"statusBarItem.hoverBackground": "#ff0000",
// 滚动条颜色
"scrollbarSlider.background": "#ddcfa533",
"scrollbarSlider.hoverBackground": "#cfb56a33",
"scrollbarSlider.activeBackground": "#cfb56acc",
// "scrollbar.shadow": "#ff0000",
"panel.border": "#999",
"editorWidget.background": "#444746",
"editorSuggestWidget.selectedBackground": "#75a478",
"list.hoverBackground": "#1e2f3e",
"list.activeSelectionBackground": "#203e57",
"list.inactiveSelectionBackground": "#203e57",
"list.dropBackground": "#ff0000",
"foreground": "#75a478",
"sideBar.background": "#21252b", // 资源管理器背景色
"editorWidget.border": "#BCD68D",
// Scrollbar:滚动条中的指示符
// "editorOverviewRuler.addedForeground": "#000",
// "editorOverviewRuler.modifiedForeground": "#000",
// "editorOverviewRuler.deletedForeground": "#000
// Gutter (same as tweaking scm.diffDecorations?)
// "editorGutter.addedBackground": "#000",
// "editorGutter.modifiedBackground": "#000",
// "editorGutter.deletedBackground": "#000
"panel.background": "#101518",
// workbench.colorCustomizations.terminal 终端颜色设置
"terminal.background": "#181818",
"terminal.foreground": "#26e045",
"terminalCursor.background": "#D8D8D8",
"terminalCursor.foreground": "#D8D8D8",
"terminal.ansiBlack": "#181818",
"terminal.ansiBlue": "#7CAFC2",
"terminal.ansiBrightBlack": "#585858",
"terminal.ansiBrightBlue": "#7CAFC2",
"terminal.ansiBrightCyan": "#86C1B9",
"terminal.ansiBrightGreen": "#A1B56C",
"terminal.ansiBrightMagenta": "#BA8BAF",
"terminal.ansiBrightRed": "#AB4642",
"terminal.ansiBrightWhite": "#F8F8F8",
"terminal.ansiBrightYellow": "#F7CA88",
"terminal.ansiCyan": "#86C1B9",
"terminal.ansiGreen": "#A1B56C",
"terminal.ansiMagenta": "#BA8BAF",
"terminal.ansiRed": "#AB4642",
"terminal.ansiWhite": "#D8D8D8",
"terminal.ansiYellow": "#F7CA88",
// "terminal.selectionBackground": "#515151",
"terminal.border": "#999"
},
"terminal.integrated.shell.osx": "/bin/bash",
// "terminal.integrated.fontFamily": "Menlo for Powerline",
"terminal.integrated.lineHeight": 0.8,
"terminal.integrated.letterSpacing": 0.1,
"terminal.integrated.rendererType": "auto",
"terminal.integrated.fontSize": 14,
"terminal.integrated.cursorBlinking": false,
"editor.tokenColorCustomizations": {
// "comments": "#18170fbd", //注释
// "keywords": "#0a0", // 关键字
// "variables": "#f00", // 变量名
// "functions": "#5b99fcc9", // 函数名
// "strings": "#18170fbd", // 字符串
"numbers": "#AE81FF" // 数字
},
"editor.accessibilitySupport": "on",
"editor.lineHeight": 30,
"editor.defaultFormatter": "octref.vetur",
"editor.tabSize": 2,
"editor.wordWrap": "bounded", // 是否自动换行
"editor.minimap.enabled": false,
"editor.formatOnSave": true,
"editor.hover.sticky": true,
// 保存文件时进行eslint修复(MacOS:快捷键是 command + s ),并不能修复所有问题,多数还是需要手动修复
// "editor.codeActionsOnSave": {
// "source.organizeImports": false,
// "source.fixAll.eslint": true
// },
"editor.foldingStrategy": "indentation",
"editor.showFoldingControls": "always",
// 双击选中带‘-’的字段: 执行文字相关的导航或操作时将用作文字分隔符的字符(去掉了 -)
"editor.wordSeparators": "~!@#$%^&*()=+[{]}\\|;:'\",.<>/?",
// 自动格式化粘贴的代码
"editor.formatOnPaste": true,
// 在资源管理器删除内容时候是否进行用户提醒
"explorer.confirmDelete": true,
// 控制在资源管理器内拖放移动文件或文件夹时是否进行确认
"explorer.confirmDragAndDrop": true,
// 重命名或移动文件时,启用或禁用自动更新导入路径
"javascript.updateImportsOnFileMove.enabled": "prompt",
// 启用/禁用导航路径
"breadcrumbs.enabled": true,
"breadcrumbs.filePath": "on",
"breadcrumbs.symbolSortOrder": "position",
"breadcrumbs.icons": true,
// 自定义代码片段显示的位置
"editor.snippetSuggestions": "top",
"window.menuBarVisibility": "toggle",
// 启用后,按下 TAB 键,将展开 Emmet 缩写。
"emmet.triggerExpansionOnTab": true,
// 控制编辑器在空白字符上显示符号的方式
"editor.renderWhitespace": "none",
// 显示 markdown 中英文切换时产生的特殊字符
"editor.renderControlCharacters": true,
// 控制在差异编辑器中是否把前导空格或尾随空格的改动显示为差异。
"diffEditor.ignoreTrimWhitespace": false,
// 控制差异编辑器的显示方式是并排还是内联。
"diffEditor.renderSideBySide": false,
// 在文件和文件夹上显示错误和警告
"problems.decorations.enabled": false,
"emmet.showExpandedAbbreviation": "always",
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
// 文件目录优化——不常用文件收缩起来
"explorer.experimental.fileNesting.enabled": true,
"explorer.experimental.fileNesting.expand": false,
"explorer.experimental.fileNesting.patterns": {
"*.ts": "$(capture).js, $(capture).*.ts",
"*.js": "$(capture).js.map, $(capture).min.js, $(capture).d.ts",
"*.jsx": "$(capture).js",
"*.tsx": "$(capture).ts",
"tsconfig.json": "tsconfig.*.json",
"package.json": "postcss.config.js, .browserslistrc, .editorconfig, .prettierrc, package-lock.json, .npmrc, yarn.lock, .yarnrc, pnpm-lock.yaml, babel.config.js, .gitignore, .eslintrc.js, .prettierrc.json"
},
// ----- vscode-fileheader settings begin -----
// 文件作者
"fileheader.Author": "ex-wangqing602",
// 文件最后修改者
"fileheader.LastModifiedBy": "ex-wangqing602",
// ----- vscode-fileheader settings end -----
// ----- stylelint settings begin -----
"css.validate": true,
"less.validate": true,
"scss.validate": true,
"stylelint.enable": false,
// ----- stylelint settings end -----
// ----- eslint settings begin -----
// 是否为JavaScript文件开启eslint检测
"eslint.enable": true,
// 保存之后进行lint
"eslint.run": "onSave",
"eslint.alwaysShowStatus": true,
// 是否启用eslint的调试模式
"eslint.debug": true,
// ----- eslint settings end -----
// ----- prettier settings begin -----
"prettier.semi": false,
"prettier.singleQuote": true,
// 对象后面默认添加逗号
"prettier.trailingComma": "es5",
"prettier.useTabs": true,
"prettier.jsxBracketSameLine": true,
"prettier.printWidth": 235,
"prettier.jsxSingleQuote": true,
"prettier.requireConfig": true,
"prettier.arrowParens": "avoid",
"prettier.bracketSpacing": true,
"prettier.ignorePath": ".prettierignore", // 不使用prettier格式化的文件填写在项目的.prettierignore文件中
// ----- prettier settings end -----
"javascript.preferences.quoteStyle": "single",
"liveServer.settings.donotShowInfoMsg": true,
// "[html]": {
// "editor.defaultFormatter": "vscode.html-language-features",
// // "editor.defaultFormatter": "HookyQR.beautify",
// // 禁止eslint对html进行校验
// "editor.codeActionsOnSave": {
// "source.fixAll.eslint": true
// }
// },
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatter.ts": "vscode-typescript",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
// "wrap_attributes" 有这几个值 [auto|force|force-aligned|force-expand-multiline]
// 对属性进行换行。
// - auto: 仅在超出行长度时才对属性进行换行。
// - force: 对除第一个属性外的其他每个属性进行换行。
// - force-aligned: 对除第一个属性外的其他每个属性进行换行,并保持对齐。
// - force-expand-multiline: 对每个属性进行换行。
// - aligned-multiple: 当超出折行长度时,将属性进行垂直对齐。
"wrap_attributes": "aligned-multiple",
// 代码长度超过多少属性才会换行
"wrap_line_length": 130,
"end_with_newline": false,
// "wrap_attributes_mode": "auto",
// "wrapped_attributes_per_line": "multiple",
// "wrapped_attributes_indent": "auto",
// "wrapped_attributes_end": "auto"
},
// prettyhtml(doc: string, options?): vFile
// - tabWidth: 缩进级别的空间宽度(默认值:2)
// - useTabs: 使用制表符代替空格进行缩进(默认值:false)
// - printWidth: 使用不同的最大行长度(默认值:80)
// - usePrettier: 对嵌入内容使用更漂亮(默认值:true)
// - prettier: 为嵌入的内容使用自定义更漂亮的设置(默认:本地配置)
// - singleQuote: 使用单引号代替双引号(默认值:false)
// - wrapAttributes: 强制包装属性(当它有多个时,默认:false)
// - sortAttributes: 按字母顺序对属性进行排序(默认值:false)
"prettyhtml": {
"printWidth": 100,
"singleQuote": true,
"wrapAttributes": true,
"sortAttributes": true
}
},
"vetur.ignoreProjectWarning": true,
"[less]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"svn.enableProposedApi": "none",
// "editor.maxTokenizationLineLength": 80,
// 添加 vue 支持
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue",
"less"
],
"files.associations": {
"*.cjson": "jsonc",
"*.vue": "vue",
"*.jsx": "javascript",
"*.wxss": "css",
"*.wxs": "javascript",
"*.wxml": "html",
"**/*.html": "html",
".env.*": "shellscript",
},
"emmet.includeLanguages": {
"wxml": "html",
"vue-html": "html",
"javascript": "javascriptreact",
"scss": "css",
"less": "css",
"vue": "html",
},
"minapp-vscode.disableAutoConfig": true,
"files.insertFinalNewline": true,
// ---------- koroFileHeader plugin begin ----------
"fileheader.configObj": {
"autoAdd": false,
"autoAlready": false,
"language": {
"javascript": {
"head": "/*",
"middle": "# "
}
},
"prohibitAutoAdd": [
"json",
"md"
], // 禁止.json .md文件,自动添加头部注释
"wideSame": false, // 设置为true开启
"wideNum": 13 // 字段长度 默认为13
},
"fileheader.customMade": {
// 头部注释
"Desc": ""
// "Version": "2.0",
// "Author": "your name",
// "Date": "Do not edit",
// "LastEditors": "",
// "LastEditTime": "Do not edit"
},
"fileheader.cursorMode": {
// 函数注释
"desc": "",
"@param": "",
// "@event": "",
"@return": ""
},
"[markdown]": {
"editor.defaultFormatter": "yzhang.markdown-all-in-one"
},
"editor.quickSuggestions": {
"strings": true
},
// ---------- koroFileHeader plugin end ----------
// ---------- vscode-element-helper plugin begin ----------
"element-helper.language": "zh-CN",
"element-helper.version": "2.0",
"element-helper.indent-size": 2,
"element-helper.quotes": "double", // html vue quotes
"element-helper.pug-quotes": "single", // jade/pug quotes
// ---------- vscode-element-helper plugin end ----------
// ---------- code-runner plugin begin ----------
"code-runner.runInTerminal": true,
"code-runner.ignoreSelection": true,
"code-runner.fileDirectoryAsCwd": true,
"code-runner.defaultLanguage": "javascript",
// ---------- code-runner plugin end ----------
// ---------- Manta's Stylus Supremacy plugin begin ----------
"stylusSupremacy.insertColons": false, // 是否插入冒号
"stylusSupremacy.insertSemicolons": false, // 是否插入分号
"stylusSupremacy.insertBraces": true, // 是否插入大括号
"stylusSupremacy.insertNewLineAroundImports": false, // import之后是否换行
"stylusSupremacy.insertNewLineAroundBlocks": true,
"search.exclude": {
"**/dist": true,
"**/public": true
},
"search.showLineNumbers": true,
"search.useIgnoreFiles": true,
"editor.renderFinalNewline": false,
"editor.scrollBeyondLastLine": false,
"editor.cursorWidth": 2,
"editor.find.addExtraSpaceOnTop": false,
"editor.formatOnType": true,
"editor.suggest.localityBonus": true,
"editor.suggest.shareSuggestSelections": true,
"editor.suggestSelection": "recentlyUsedByPrefix",
"editor.quickSuggestionsDelay": 20,
"editor.hover.enabled": true,
"update.showReleaseNotes": false,
"emmet.showSuggestionsAsSnippets": true,
// ---------- Manta's Stylus Supremacy plugin end ----------
// ---------- Path Autocomplete plugin begin ----------
/**
● 路径补全提示
● 需手动安装插件:Path Autocomplete
● https://github.com/ionutvmi/path-autocomplete#options
*/
"path-autocomplete.pathMappings": {
"@": "${folder}/src",
"~@": "${folder}/src",
"assets": "${folder}/src/assets",
"~assets": "${folder}/src/assets",
"style": "${folder}/assets/style",
"~style": "${folder}/assets/style",
"images": "${folder}/assets/images",
"~images": "${folder}/assets/images",
"components": "${folder}/src/components",
"~components": "${folder}/src/components",
"views": "${folder}/src/views",
"~views": "${folder}/src/views",
"utils": "${folder}/src/utils",
"store": "${folder}/src/store",
"mixins": "${folder}/src/mixins",
"config": "${folder}/src/config"
},
"path-autocomplete.extensionOnImport": true,
// ---------- Path Autocomplete plugin end ----------
// ---------- Auto_Rename_Tag plugin begin ----------
// 起作用的文件
"auto-rename-tag.activationOnLanguage": [
"javascript",
"html",
"xml",
"php",
"vue"
],
"css.customData": [
"JSON"
],
"editor.minimap.maxColumn": 150,
"explorer.openEditors.visible": 15,
"debug.allowBreakpointsEverywhere": true,
"debug.console.lineHeight": 3,
"debug.onTaskErrors": "showErrors",
"breadcrumbs.symbolPath": "off",
"workbench.settings.openDefaultKeybindings": true,
// 设置一行长度,超过则换行
"editor.wordWrapColumn": 120,
"editor.wrappingIndent": "deepIndent",
"editor.fontWeight": "600",
"editor.fontFamily": "JetBrains, Menlo, Monaco, 'Courier New', monospace",
"markdown.preview.lineHeight": 1.2,
"editor.suggestLineHeight": 30,
"editor.renderLineHighlight": "all",
"window.nativeTabs": true,
"tabnine.experimentalAutoImports": true,
"bracketPairColorizer.depreciation-notice": false,
"editor.linkedEditing": true,
"cSpell.enabled": false,
"npm.packageManager": "npm",
"npm.enableRunFromFolder": true,
"npm.scriptExplorerAction": "run",
"security.workspace.trust.untrustedFiles": "open",
"editor.fontSize": 16,
"vue-peek.supportedLanguages": [
"vue",
"html"
],
"vue-peek.targetFileExtensions": [
".vue",
".html"
],
"consoleLog.Number Argument": "console.log 接收 2 个参数",
"consoleLog.Show LineNumber": false,
"consoleLog.Prefix Logo": "[ # ] ========>",
"editor.foldingMaximumRegions": 15000,
"git.confirmSync": false,
"gitlens.currentLine.enabled": false,
"gitlens.currentLine.format": "${author, }${agoOrDate}${' via 'pullRequest}${ • message}",
"gitlens.statusBar.format": "${author}, ${agoOrDate}${' via 'pullRequest}${message}",
"gitlens.statusBar.alignment": "left",
"bookmarks.useWorkaroundForFormatters": true,
"prettier.insertPragma": true,
"prettier.vueIndentScriptAndStyle": true,
"html.format.wrapLineLength": 135,
"prettier.endOfLine": "auto",
"eslint.format.enable": true,
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"git.enableSmartCommit": true,
// ---------- Auto_Rename_Tag plugin end ----------
"leetcode.endpoint": "leetcode-cn",
"leetcode.hint.configWebviewMarkdown": false,
"leetcode.workspaceFolder": "/Users/ex-wangqing602/study/leetcode",
"leetcode.defaultLanguage": "javascript",
"leetcode.editor.shortcuts": [
"submit",
"test",
"solution"
],
"leetcode.hint.commentDescription": false,
"leetcode.hint.commandShortcut": false,
"projectManager.git.baseFolders": [
"/Users/ex-wangqing602/workspace/source"
],
"projectManager.git.ignoredFolders": [
"node_modules",
"out",
"typings",
"test",
".haxelib",
"dist",
"demo"
],
"projectManager.git.maxDepthRecursion": 3,
"scm.countBadge": "focused",
"scm.defaultViewSortKey": "status",
"scm.repositories.visible": 0,
"scm.alwaysShowActions": true,
"scm.diffDecorationsGutterWidth": 2,
"scm.diffDecorationsIgnoreTrimWhitespace": "true",
"[scss]": {
"editor.defaultFormatter": "HookyQR.beautify"
},
"workbench.startupEditor": "none",
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// ---------- preview on web server plugin begin ----------
"previewServer.port": 5500,
"workbench.editor.enablePreview": true,
"editor.autoClosingQuotes": "always",
"typescript.preferences.quoteStyle": "single",
"files.exclude": {
"**/node_modules1": true
},
"projectManager.showParentFolderInfoOnDuplicates": true,
"projectManager.openInNewWindowWhenClickingInStatusBar": true,
"projectManager.filterOnFullPath": true,
// ---------- preview on web server plugin end ----------
}