{
"editor.fontSize": 16,
"workbench.iconTheme": "vscode-icons",
"editor.wordWrap": "on",
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"explorer.confirmDelete": false,
"extensions.autoUpdate": true,
"workbench.colorTheme": "One Monokai",
"window.zoomLevel": 0,
"editor.fontFamily": "Fira Code",
"editor.tokenColorCustomizations": {
"textMateRules": [
{
"name": "Comment",
"scope": [
"comment",
"comment.block",
"comment.block.documentation",
"comment.line",
"comment.line.double-slash",
"punctuation.definition.comment",
],
"settings": {
"fontStyle": "",
//斜体 "fontStyle": "italic",
//斜体下划线 "fontStyle": "italic underline",
//斜体粗体下划线 "fontStyle": "italic bold underline",
}
},
]
},
"editor.detectIndentation": false,
"files.autoSave": "onFocusChange",
// "javascript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true,
// "javascript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true,
// "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
// "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": true,
// "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyBrackets": true,
// "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": true,
// "typescript.format.insertSpaceAfterOpeningAndBeforeClosingJsxExpressionBraces": true,
// "typescript.format.insertSpaceAfterOpeningAndBeforeClosingTemplateStringBraces": true,
// "javascript.format.placeOpenBraceOnNewLineForControlBlocks": true,
// tab 大小为2个空格
"editor.tabSize": 2,
// 100 列后换行
"editor.wordWrapColumn": 100,
// 保存时格式化
"editor.formatOnSave": true,
// 开启 vscode 文件路径导航
"breadcrumbs.enabled": true,
// prettier 设置语句末尾不加分号
"prettier.semi": false,
// prettier 设置强制单引号
"prettier.singleQuote": true,
// 选择 vue 文件中 template 的格式化工具
// "prettier.tabWidth": 4,
"vetur.format.defaultFormatter.html": "prettier",
// "vetur.format.options.tabSize": 4,
// 显示 markdown 中英文切换时产生的特殊字符
"editor.renderControlCharacters": true,
// 设置 eslint 保存时自动修复
"eslint.autoFixOnSave": true,
// eslint 检测文件类型
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
],
// vetur 的自定义设置
"vetur.format.defaultFormatterOptions": {
"prettier": {
"singleQuote": true,
"semi": false
}
},
"[css]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.formatOnPaste": true,
"editor.formatOnType": false,
"files.associations": {
".cjson": "jsonc",
".wxss": "css",
"*.wxs": "javascript"
},
"emmet.includeLanguages": {
"wxml": "html"
},
"minapp-vscode.disableAutoConfig": true
}
VsCode自定义设置,setting.json
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- {"files.autoSave": "afterDelay","liveServer.settings.dono...
- 我用的vscode,eslint好久没更新了,昨天更新了一下,发现个问题,ctrl+s代码不格式化了,看了下文档发...