vscode - setting - json -ldt

vscode - setting - json -ldt

{
"volar.inlayHints.eventArgumentInInlineHandlers": false,
"security.workspace.trust.untrustedFiles": "open",
"workbench.iconTheme": "vscode-icons",
"workbench.colorTheme": "Visual Studio Light",
"extensions.autoUpdate": false, //关闭自动更新扩展
"editor.wordWrap": "on", // 代码换行
"editor.fontSize": 14,
// "editor.fontWeight": "600",
// "editor.fontFamily": "Monaco,'Roboto Mono for Powerline'",
"editor.multiCursorModifier": "ctrlCmd",
"editor.suggestSelection": "first",
"search.followSymlinks": false, // 开启后内存爆满
"files.autoSave": "off",
"git.autofetch": true, // 若设置为 true,则自动从当前 Git 存储库的默认远程库提取提交。若设置为“全部”,则从所有远程库进行提取。
// "git.path": "C:\Program Files\Git\cmd\git.exe", git配置
"vsicons.dontShowNewVersionMessage": true,
"explorer.confirmDelete": false, // 两个选择器中是否换行
/** 格式化 */
"diffEditor.ignoreTrimWhitespace": false,
// vscode默认启用了根据文件类型自动设置tabsize的选项
"editor.detectIndentation": false,
// 重新设定tabsize
"editor.tabSize": 2,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll.stylelint": true
},
// #每次保存的时候自动格式化
"editor.formatOnSave": false,
// #每次保存的时候将代码按eslint格式进行修复
// "eslint.autoFixOnSave": false,
// 关闭eslint 语法检测
"eslint.enable": true,
"eslint.format.enable": true,
// 关闭 vscode 默认的检查工具
"html.validate.scripts": false,
"javascript.validate.enable": false,
"eslint.alwaysShowStatus": true,
//autoFix默认开启,只需输入字符串数组即可
"eslint.validate": [
"javascript",
"javascriptreact",
"vue", // 添加 vue 支持
"html",
"vue-html"
],
"eslint.options": {
"extensions": [
".js",
".vue"
]
},
// 格式化stylus, 需安装Manta's Stylus Supremacy插件
"stylusSupremacy.insertColons": false, // 是否插入冒号
"stylusSupremacy.insertSemicolons": false, // 是否插入分号
"stylusSupremacy.insertBraces": false, // 是否插入大括号
"stylusSupremacy.insertNewLineAroundImports": false, // import之后是否换行
"stylusSupremacy.insertNewLineAroundBlocks": false,
/* prettier的配置 */
// #让prettier使用eslint的代码格式进行校验
"prettier.eslintIntegration": true,
// 不让prettier使用tslint的代码格式进行校验
"prettier.tslintIntegration": false,
/* prettier的配置 */
"prettier.printWidth": 120, // 超过最大值换行
"prettier.tabWidth": 2, // 缩进字节数
"prettier.useTabs": false, // 缩进使用tab 不使用空格
"prettier.semi": false, // 句尾添加分号
"prettier.singleQuote": true, // 使用单引号代替双引号
"prettier.proseWrap": "preserve", // 默认值。因为使用了一些折行敏感型的渲染器(如GitHub comment)而按照markdown文本样式进行折行
"prettier.arrowParens": "avoid", // (x) => {} 箭头函数参数只有一个时是否要有小括号。avoid:省略括号
"prettier.bracketSpacing": true, // 在对象,数组括号与文字之间加空格 "{ foo: bar }"
// 不格式化vue文件,vue文件的格式化单独设置
// "prettier.disableLanguages": ["vue"],
"prettier.endOfLine": "auto", // 结尾是 \n \r \n\r auto
"prettier.htmlWhitespaceSensitivity": "ignore",
"prettier.ignorePath": ".prettierignore", // 不使用prettier格式化的文件填写在项目的.prettierignore文件中
"prettier.requireConfig": false, // Require a "prettierconfig" to format prettier
"prettier.trailingComma": "none", // 在对象或数组最后一个元素后面是否加逗号
/* 每种语言默认的格式化规则 */
// #让函数(名)和后面的括号之间加个空格
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
"javascript.preferences.quoteStyle": "single", // 用于快速修复的首选引用样式: single (单引号)、double (双引号) 或 auto (从已有 import 语句中推测引号类型)。
// #这个按用户自身习惯选择
"vetur.format.defaultFormatter.html": "js-beautify-html",
// #让vue中的js按编辑器自带的ts格式进行格式化
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.validation.template": false,
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_line_length": 120,
"wrap_attributes": "force-aligned"
// #vue组件中html代码格式化样式
}
},
/* 每种语言默认的格式化规则 */
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[scss]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsonc]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"[markdown]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
},
/** 格式化 end */
/** todo-tree settings start */
"todo-tree.regex.regex": "((//|#|<!--|;|/\\*|^)\\s*($TAGS):|^\\s*- \\[ \\])",
"todo-tree.general.tags": [
"BUG",
"HACK",
"FIXME",
"TODO",
"XXX",
"???",
"done",
"tag",
"bug",
"fixme",
"todo",
"note",
"fix"
],
"todo-tree.regex.regexCaseSensitive": false,
// "todo-tree.tree.showInExplorer": false,
"todo-tree.highlights.defaultHighlight": {
"foreground": "white",
"background": "yellow",
"icon": "check",
"rulerColour": "yellow",
"type": "tag",
"iconColour": "yellow"
},
"todo-tree.highlights.customHighlight": {
"todo": {
"background": "yellow",
"rulerColour": "yellow",
"iconColour": "yellow"
},
"???": {
"background": "yellow",
"rulerColour": "yellow",
"iconColour": "yellow"
},
"bug": {
"background": "red",
"icon": "bug",
"rulerColour": "red",
"iconColour": "red",
},
"FIXME": {
"background": "red",
"icon": "beaker",
"rulerColour": "red",
"iconColour": "red",
},
"tag": {
"background": "blue",
"icon": "tag",
"rulerColour": "blue",
"iconColour": "blue",
"rulerLane": "full"
},
"done": {
"background": "green",
"icon": "issue-closed",
"rulerColour": "green",
"iconColour": "green",
},
"note": {
"background": "#f90",
"icon": "note",
"rulerColour": "#f90",
"iconColour ": "#f90"
}
}
/** todo-tree settings end */
,
"explorer.confirmDragAndDrop": false,
"git.enableSmartCommit": true,
"markdown-preview-enhanced.previewTheme": "atom-light.css",
/** koroFileHeader 自定义配置 */
// 头部注释,默认设置:
/** {
Author: 'your name',
Date: 'Do not edit',
LastEditors: 'your name',
LastEditTime: 'Do not edit',
Description: 'file content',
}; */
"fileheader.customMade": {
"Date": "Do not edit", // 文件创建时间(不变)
"Author": "zclee", // 文件最后编辑者
"LastEditTime": "Do not edit", // 文件最后编辑时间
"LastEditors": "zclee", // 文件最后编辑时间
"FilePath": "Do not edit", // 文件在项目中的相对路径 自动更新
"Description": ""
},
// 在光标处插入函数注释,默认配置:{'description':'','param':'','return':''}
"fileheader.cursorMode": {
"Author": "zclee", // 文件最后编辑者
"Date": "Do not edit", // 文件创建时间(不变)
"LastEditTime": "Do not edit", // 文件最后编辑时间
"method": "函数名称",
"description": "函数注释配置模板",
"param": "",
"return": ""
},
"fileheader.configObj": {
"autoAdd": false, // 自动添加头部注释开启才能自动添加
"designAddHead": false, // 默认关闭, 生成的图案注释是否附带头部注释
"headDesign": false, // 默认关闭 开启后,所有生成头部注释的场景都会生成图案注释
"headDesignName": "random", // 默认为随机图案
"autoAddLine": 100, // 文件超过一定行数不再自动添加头部注释 默认文件超过100行就不再自动添加头部注释
"autoAlready": true, // 只让支持的语言,自动添加头部注释 默认开启
// 当前时间/创建文件时间:
"createFileTime": true, // 设为false更改为当前生成注释的时间
"language": {
"js/ts": {
"head": "/**",
"middle": " * @",
"end": " */",
"functionSymbol": {
"head": "/** ",
"middle": " * @",
"end": " */"
},
// 自定义语言支持函数参数提取
// "functionParams": "typescript" // 使用ts语言的解析逻辑
"functionParams": "js"
}
},
"annotationStr": { // 默认注释形式:
"head": "/*",
"middle": " * @",
"end": " */",
"use": false
},
// 自定义特殊字段
"specialOptions": {
// "特殊字段": "自定义比如LastEditTime/LastEditors",
"Date": "createDate",
},
// 自动添加文件黑名单
"prohibitAutoAdd": [
"json",
"md" // 禁止.json .md文件,自动添加头部注释
],
// 自动添加项目黑名单
"prohibitItemAutoAdd": [
"项目的全称, 整个项目禁止自动添加头部注释, 可以使用快捷键添加"
],
// 自动添加文件白名单
"supportAutoLanguage": [],
// 文件夹或文件名禁止自动添加头部注释
"folderBlacklist": [
"node_modules",
"文件夹禁止自动添加头部注释",
"webpack.config.js" // 可以禁止某些文件自动添加注释
],
// 修改路径分隔符
// "filePathColon": "\\\\", // \ 路径要转义 所以要写两遍
// old: FilePath: /文件夹名称/test.js
// now: FilePath: \\文件夹名称\\test.js
"filePathColon": "路径分隔符替换",
// 头部注释等宽设置wideSame
"wideSame": false,
"wideNum": 13,
// 新建文件自动添加
"createHeader": true,
// 节流时间自定义, 自定义同一个文件触发保存的频率
"throttleTime": 60000, // 对同一个文件 需要过1分钟再次修改文件并保存才会更新注释
// 头部注释第几行插入
"headInsertLine": {
"php": 2, // php后缀的文件,在第二行插入文件头部注释
"sh": 2,
"*": 1, // 所有文件都在第1行插入注释(除了php sh)
},
// 时间格式化:
// PS: 该功能将影响所有时间字段。
"dateFormat": "YYYY-MM-DD HH:mm:ss",
// 头部注释前面插入内容:
"beforeAnnotation": {
// "文件后缀": "该文件后缀的头部注释之前添加某些内容 换行符\n",
// "js": "// js",
// "*": "\n" // 所有文件的头部注释都在前面增加一个换行(除了js)
},
// 头部注释后面插入内容:
"afterAnnotation": {
// "文件后缀": "该文件后缀的头部注释之后添加某些内容",
// "js": "// js文件头部注释之后的内容",
// "*": "\n" // 所有文件新增头部注释之后都空一行(除了js)
},
"switch": {
// 遇到换行添加注释符号
"newlineAddAnnotation": true
},
// 移动光标到`Description :`所在行
"moveCursor": true,
// 自定义注释中的艾特和冒号:
// 所有文件的头部注释和函数注释的默认值
"atSymbol": [
"@",
"@"
],
"atSymbolObj": {
// "文件后缀": [
// "头部注释@符号",
// "函数注释@符号"
// ],
"js": [
" - ",
"@"
], // .js文件的头部注释@符号去掉,所有文件的函数注释默认为@
},
// 所有文件的头部注释和函数注释的默认值
"colon": [
": ",
": "
],
"colonObj": {
// "文件后缀": [
// "头部注释冒号",
// "函数注释冒号"
// ]
"js": [
" - ",
": "
], // .js文件 头部注释去掉: 留一个空格 函数注释保留冒号
},
// 隐藏插件抛出的错误通知
"showErrorMessage": false, // 默认不显示错误通知 用于debugger
// 错误日志
// 开启错误日志后,每次重启vscode如果有报错都将会清空日志,这是防止日志过多的情况。
// 设置错误日志生成地址
// 按快捷键ctrl+p,调出命令行面板,输入以下命令即可选择文件夹设置日志地址。
// >空格fileheader.errPathSet
"writeLog": false, // 默认不生成错误日志
// 单个文件保存时进行diff检查
// 每次保存之后,会进行一次diff检查, 如果文件只变更了LastEditors/LastEditTime,该文件将会回滚到本地仓库的最新版本.
// 使用场景:对文件进行修改之后又撤销,但是LastEditors和LastEditTime已经变更了,在提交代码的时候很容易忘记恢复它,导致无意义的提交,反正我很经常遇到这个问题。
"CheckFileChange": false, // 默认关闭
// 区分工作区配置模板
// 该设置我们可以区分工作区设置的模板和用户设置的通用模板,默认情况下是合并工作区设置和用户设置的字段。
// 头部注释customMade 和函数注释cursorMode都可以区分。
"useWorker": false,
// 函数注释自动提取函数的参数
// 开启的话,在cursorMode函数注释模板中需要有param字段
"openFunctionParamsCheck": true,
"functionWideNum": 0,
// 函数内生成函数注释
"cursorModeInternalAll": {
"ts": true, // ts文件后缀是函数内生成函数注释
"js": false, // js文件后缀是在函数外生成函数注释
"python": true, // python语言类型文件时在函数内生成函数注释
"defaultSetting": false // 默认是在函数外生成注释
},
// 函数参数外形自定义
// [ "{", "}"] // 默认值 @param {number} c
// [ "[", "]"] @param [number] c
// "functionParamsShape": "no type", @param c
"functionParamsShape": [
"{",
"}"
],
// 函数注释空格缩进
"functionBlankSpaceAll": {
// "js": 2, // 单独设置文件:js文件后缀 缩进两格
"python": 4, // 设置语言:python语言类型 函数注释空格缩进4格
"defaultSetting": 0 // 不设置 默认值为0
},
// 参数没有类型时的默认值
"functionTypeSymbol": "*",
// 参数类型 和 参数的位置自定义
// "typeParamOrder": "param type" // @param axiosMethods {type}
// "typeParamOrder": "param" 只有参数 没有类型 @param axiosMethods
"typeParamOrder": "type param", // 类型在前面 参数在后面
// 自定义取消注释的head和end部分
// 注意该配置只在自定义语言注释language也配置了,才会生效
"customHasHeadEnd": {
// "js": "cancel head and function", // 头部注释和函数注释均不取消head和end - 单独设置文件 js文件后缀
// "ts": "cancel function", // 函数注释不带有head和end-ts文件后缀
// "python": "cancel head", // 头部注释不带有head和end
// "defaultSetting": '' // 不设置 默认所有文件都有head和end
},
},
"security.workspace.trust.enabled": false,
"editor.minimap.renderCharacters": false,
/* easysass
-------------------------- */
"easysass.compileAfterSave": false, // 保存后启用或禁用自动编译
"easysass.excludeRegex": "_", // 使用正则表达式从编译中排除文件
"easysass.formats": [ // 格式:指定导出文件的扩展名和格式。
{
"format": "expanded",
"extension": ".css"
},
{
"format": "compressed",
"extension": ".min.css"
}
],
"easysass.targetDir": "css/", // 为生成的文件定义目标目录。
"diffEditor.wordWrap": "on",
/* background
-------------------------- */
"background.fullscreen": {
// "image": "https://pathtoimage.png", // url of your image
// "image": ["https://pathtoimage.png"], // An array may be useful when set interval for carousel
// "image": "https://images.cnblogs.com/cnblogs_com/zc-lee/2003114/o_210721093039%E6%9D%8E%E7%99%BD%20(1).jpg", //李白
// "image": "https://images.cnblogs.com/cnblogs_com/zc-lee/2003114/o_210721093400%E8%B2%82%E8%9D%89-%E5%9C%A3%E8%AF%9E%E6%81%8B%E6%AD%8C.jpg", // 吕布貂蝉
// "image": "https://images.cnblogs.com/cnblogs_com/zc-lee/2003106/o_21072107231491B5F195DA7E8AD83C1641E841C41B34.jpg", // 三国杀
// "image": "https://images.cnblogs.com/cnblogs_com/zc-lee/2003114/o_230307063734_%E9%9C%B2%E5%A8%9C%C2%B7%E4%B8%80%E7%94%9F%E6%89%80%E7%88%B1.jpg", // 一生所爱
// "image": "https://images.cnblogs.com/cnblogs_com/zc-lee/2003114/o_230307063939_%E8%A5%BF%E6%96%BD-%E8%AF%97%E8%AF%AD%E6%B1%9F%E5%8D%97.jpg", // 西施-诗语江南
// "image": "https://images.cnblogs.com/cnblogs_com/zc-lee/1901644/o_2012161143007aec54e736d12f2e07615a764cc2d56285356844.jpg", // 卫庄
// "image": "https://images.cnblogs.com/cnblogs_com/zc-lee/1901644/o_2012161148532dcca28f8c5494ee50cec76029f5e0fe98257eea.jpg", // 秦时明月
// "image": "https://images.cnblogs.com/cnblogs_com/zc-lee/1901644/o_230307064104_1920%20108042E944E97AEA4E6D8DE30F966B9F4C3E.jpg", // 天行九歌
// "image": "https://images.cnblogs.com/cnblogs_com/zc-lee/1901644/o_230307064114_1920%201080CE289C8A3928445B8EA99AEC54223C07.jpg", // 天行九歌
"image": [
"file:///D://lee//pictrues//79da5158d109b3de680f6b91cbbf6c81810a4c28.png",
"file:///D://lee//pictrues//1920 1080CE289C8A3928445B8EA99AEC54223C07.jpg",
"file:///D://lee//pictrues//u=3471842280,990633141&fm=15&gp=0.jpg",
"file:///D://lee//pictrues//1920 108042E944E97AEA4E6D8DE30F966B9F4C3E.jpg",
], // An array may be useful when set interval for carousel
"opacity": 0.85, // 0.85 ~ 0.95 recommended
"size": "cover", // also css, `cover` to self-adaption (recommended),or `contain`、`200px 200px`
"position": "center", // alias to `background-position`, default `center`
"interval": 30 // seconds of interval for carousel, default `0` to disabled.
},
"background.useFront": false,
"background.style": {
"content": "''",
"pointer-events": "none",
"position": "absolute",
"z-index": "99999",
"width": "100%",
"height": "100%",
"background-position": "100% 100%",
"background-repeat": "no-repeat",
"opacity": 1
},
"background.customImages": [
"file:///D://lee//pictrues//9fea098065380cd7ea376361a844ad34588281a2.jpg",
"file:///D://lee//pictrues//79da5158d109b3de680f6b91cbbf6c81810a4c28.png",
"file:///D://lee//pictrues//1920 1080CE289C8A3928445B8EA99AEC54223C07.jpg",
],
/* backgroundCover
-------------------------- */
"backgroundCover.imagePath": "d:\\lee\\pictrues\\西施-诗语江南.jpg",
"backgroundCover.randomImageFolder": "d:\\lee\\pictrues",
/** koroFileHeader 自定义配置 end */
}
posted @   zc-lee  阅读(135)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示