{
"fileheader.customMade": {
"Date": "Do not edit", // 文件创建时间(不变)
"LastEditors": "LeeKing", // 文件最后编辑者
"LastEditTime": "Do not edit", // 文件最后编辑时间
"FilePath": "Do not edit" // 文件在项目中的相对路径 自动更新
},
// // 不填写对应属性即关闭对应功能
// "[less]": {
// // "editor.defaultFormatter": "HookyQR.beautify"
// },
// "[html]": {
// "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
// },
// "[javascript]": {
// "editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
// },
// "tabnine.experimentalAutoImports": true,
// "vetur.format.defaultFormatter.js": "prettier-eslint",
// "vetur.format.defaultFormatterOptions": {
// "prettier": {
// "semi": false, // 去掉分号
// "singleQuote": true, // true 为使用单引号
// "printWidth": 80
// },
// },
// "eslint.options": {
// "extensions": [
// ".js",
// ".vue",
// ".jsx",
// ".tsx"
// ]
// },
// "editor.codeActionsOnSave": {
// "source.fixAll.eslint": true
// },
// "editor.tabSize": 2,
// // "workbench.colorTheme": "One Dark Pro Darker",
// "breadcrumbs.enabled": false,
// // "workbench.iconTheme": "vscode-icons",
// "git.enableSmartCommit": true,
// "vetur.format.enable": false,
// "vetur.format.defaultFormatter.html": "none",
// "javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": false,
// "security.workspace.trust.untrustedFiles": "open",
// "eslint.codeAction.showDocumentation": {
// "enable": true
// },
// "eslint.alwaysShowStatus": true,
// "vetur.experimental.templateInterpolationService": true,
// "vetur.validation.templateProps": true,
// "html.format.wrapAttributes": "force",
// // -------------
// "editor.wordWrap": "on",
// // "[html]": {
// // "editor.defaultFormatter": "HookyQR.beautify"
// // },
// "less.compile": {
// "out": "../css/"
// },
// "editor.formatOnSave": true,
// // "[javascript]": {
// // "editor.defaultFormatter": "HookyQR.beautify"
// // },
// "workbench.colorTheme": "SynthWave '84",
"background.useDefault": false,
// "background.style": {
// "content": "''",
// "pointer-events": "none",
// "position": "absolute",
// "bottom": "0px",
// "right": "15px",
// "z-index": "99999",
// "width": "100%",
// "height": "100%",
// "background-position": "0% 0%",
// "background-size": "cover",
// "background-repeat": "no-repeat",
// "opacity": 1,
// //" background-color: rgba(0, 0, 0, 0.4)"
// },
// "background.customImages": [
// // "file:///E:/VSbz/wallhaven-289pqm.png",
// // "file:///E:/VSbz/wallhaven-m92po8.jpg",
// // "file:///E:/VSbz/preview.gif",
// // "file:///D:/VSCodeBackground/ram3.jpg",
// ],
"editor.fontFamily": "'Fira Code',Consolas, 'Courier New', monospace",
// "editor.suggestSelection": "first",
// ---------------------
"emmet.variables": {
"lang": "zh-CN"
},
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"emmet.triggerExpansionOnTab": true, //换行
"editor.hover.enabled": true, //控制活动代码段是否阻止快速建议。
"editor.cursorSmoothCaretAnimation": true, //控制是否启用平滑插入动画。
"editor.renderWhitespace": "none", //控制编辑器在空白字符上显示符号的方式。
"editor.renderControlCharacters": true, //控制编辑器是否显示控制字符。
"editor.tabSize": 2, //一个制表符等于的空格数
"editor.formatOnType": true,
"editor.tabCompletion": "on", //启用 Tab 补全。
"editor.fontSize": 16, //字体大小
"editor.renderIndentGuides": true, //控制编辑器是否自动格式化粘贴的内容。格式化程序必须可用,并且能针对文档中的某一范围进行格式化。
"editor.fontLigatures": true, //配置字体连字或字体特性
"editor.formatOnSave": true, //在保存时格式化文件。格式化程序必须可用,延迟后文件不能保存,并且编辑器不能关闭。
"editor.bracketPairColorization.enabled": true, //括号颜色
"editor.codeActionsOnSave": {
//在保存时运行的代码操作类型。
"source.fixAll.eslint": true
},
"editor.tokenColorCustomizations": {
// "comments": "#50b7c1", //注释
// "strings": "#fab27b", //字符串
"numbers": "#06a2f0", //数字
// "functions": "#FF0000", //函数名
"variables": "#feeeed" //变量名
// "keywords": "#feeeed", //关键字
},
"workbench.editor.untitled.hint": "hidden", //侧边栏右侧
"workbench.colorCustomizations": {
"editor.lineHighlightBackground": "#07c1fa3d", //修改光标所在行的背景色#49b2b93d
// "editor.lineHighlightBorder": "#ffffff30" //修改光标所在行的边框色
// "editor.selectionHighlightBackground": "#0066ff", // 选取字改透明色
"editorBracketMatch.border": "#ff0000", // 括号的框色
"editorBracketMatch.background": "#0066ff" // 括号背景色
},
"workbench.iconTheme": "vscode-icons", //图标
// "workbench.preferredDarkColorTheme": "Material Theme Palenight High Contrast", //控制自动保存未保存的编辑器。有关自动保存的详细信息
"files.hotExit": "off", //控制是否在会话间记住未保存的文件,以允许在退出编辑器时跳过保存提示
"files.trimFinalNewlines": true, //启用后,保存文件时将删除在最终新行后的所有新行。
"explorer.confirmDelete": false, //背景主题
//s-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
//! path intellisense
"path-intellisense.mappings": {
"@": "{workspaceRoot}/"
},
"path-intellisense.extensionOnImport": true, //导入文件时是否携带文件的扩展名
//--------------------------------------------------------
//!path autocomplete
"path-autocomplete.extensionOnImport": true, //导入文件时是否携带文件的扩展名
//配置@的路径提示
"path-autocomplete.pathMappings": {
"@": "{folder}/"
},
//--------------------------------------------------------
//! eslint
"eslint.alwaysShowStatus": true,
"eslint.run": "onSave", //保存就校验
"eslint.enable": true,
"eslint.options": {
"extensions": [
".js",
".vue",
".jsx",
".tsx"
]
},
"eslint.codeAction.showDocumentation": {
"enable": false
},
//--------------------------------------------------------
//!Prettier - Code formatter
// "prettier.configPath": "C:\Users\LEO\.prettierrc",
"prettier.tabWidth": 2, //缩进字节数
"prettier.trailingComma": "none", // 在对象或数组最后一个元素后面是否加逗号(在ES5中加尾逗号)
"prettier.semi": false, // 句尾是否加;
"prettier.printWidth": 80, //超过最大值换行
"prettier.singleQuote": true, // 使用单引号代替双引号
"prettier.arrowParens": "avoid", // (x) => {} 箭头函数参数只有一个时是否要有小括号。avoid:省略括号
"[html]": {
"editor.defaultFormatter": "vscode.html-language-features"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
/* "[less]": {
"editor.defaultFormatter": "HookyQR.beautify"
}, */
"[vue]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
//!vetur
"vetur.format.defaultFormatter.js": "prettier-eslint",
"vetur.format.defaultFormatter.html": "none",
"vetur.useWorkspaceDependencies": true,
"vetur.ignoreProjectWarning": true, //忽略项目中的警告弹窗
"vetur.format.styleInitialIndent": false, //style字段首行缩进
"vetur.format.scriptInitialIndent": false, //script字段首行缩进
"javascript.format.insertSpaceBeforeFunctionParenthesis": true, //函数后跟空格
"javascript.format.insertSpaceAfterFunctionKeywordForAnonymousFunctions": true, //匿名函数后跟空格
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "auto", //标签属性不换行
// "wrap_attributes": "force-expand-multiline",//对每个属性进行换行。
"wrap_line_length": 90, //换行长度
// "end_with_newline": false
},
"prettier": {
"trailingComma": "none", // 多行时,尽可能打印尾随的逗号
"tabWidth": 2, // 会忽略vetur的tabSize配置
"useTabs": false, // 是否利用tab替代空格
"semi": false, // 句尾是否加;
// "stylelintIntegration": true,
"singleQuote": true, // 使用单引号而不是双引号
"arrowParens": "avoid", // allow paren-less arrow functions 箭头函数的参数使用圆括号
"printWidth": 90, //超过最大值换行
// "bracketSpacing": true, //对象大括号直接是否有空格,默认为true,效果:{ foo: bar }
}
},
//----------------------------------------------------------
//!Code Spell Checker
"cSpell.userWords": [
"amfe",
"pxtorem",
"Vant",
"vite",
"Vuex"
], //忽略的单词
//-----------------------------------------------------------------------------
//! setting sync
"sync.gist": "143571f82fe8587cf4b57a2eab0b7ba8",
//-----------------------------------------------------------------------------
//!highlight Line
"highlightLine.borderColor": "#40E0D0",
"highlightLine.borderWidth": "2px",
"highlightLine.borderStyle": "solid",
//-----------------------------------------------------------------------------
//#better comments
"better-comments.tags": [
{
"tag": "!",
"color": "#FF2D00",
"strikethrough": false,
"backgroundColor": "transparent"
},
// {
// "tag": "l",
// "color": "#3498DB",
// "strikethrough": false,
// "backgroundColor": "transparent"
// },
// {
// "tag": "//",
// "color": "#474747",
// "strikethrough": true,
// "backgroundColor": "transparent"
// },
{
"tag": "~",
"color": "#FF8C00",
"strikethrough": false,
"backgroundColor": "transparent"
},
// {
// "tag": "v",
// "color": "#98C379",
// "strikethrough": false,
// "backgroundColor": "transparent"
// }
],
//! git
"git.autofetch": true,
"git.confirmSync": false,
"git.enableSmartCommit": true,
//--------------------------------------------------------
"sync.removeExtensions": false,
"workbench.startupEditor": "none",
"security.workspace.trust.untrustedFiles": "open",
"editor.autoClosingBrackets": "always",
"cSpell.noConfigSearch": true,
"explorer.compactFolders": false,
"editor.wordWrap": "on",
"workbench.editor.splitInGroupLayout": "vertical",
"html.format.wrapAttributes": "force",
"workbench.colorTheme": "Dracula",
"javascript.suggest.paths": false,
// "editor.defaultFormatter": "octref.vetur",
"bracketPairColorizer.depreciation-notice": false,
"git.ignoreWindowsGit27Warning": true,
"files.autoSave": "onFocusChange",
"sync.autoUpload": true,
"update.enableWindowsBackgroundUpdates": false,
"diffEditor.ignoreTrimWhitespace": false,
"terminal.integrated.defaultProfile.osx": "zsh",
//--------------------------------------------------------
// ! 添加prettier的配置
// 保存到额时候用使用prettier进行格式化
// 不要有分号
// 使用单引号
// 默认使用prittier作为格式化工具
"editor.defaultFormatter": "esbenp.prettier-vscode",
"security.workspace.trust.enabled": false,
"update.mode": "none",
"tabnine.experimentalAutoImports": true,
}