VsCode自定义设置,setting.json

{
"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)