vscode settings.json 配置

451 阅读1分钟

{ // tab 大小为2个空格 "editor.tabSize": 2, // 100 列后换行 // "editor.wordWrapColumn": 100, "vetur.format.defaultFormatterOptions": { "js-beautify-html": { "wrap_attributes": "auto" }, "prettyhtml": { "printWidth": 100, "singleQuote": false, "wrapAttributes": true, "sortAttributes": true }, "prettier": { "semi": false, "singleQuote": true } }, // 开启 vscode 文件路径导航 "breadcrumbs.enabled": true, // prettier 设置语句末尾不加分号 "prettier.semi": true, // prettier 设置强制单引号 "prettier.singleQuote": true, // 选择 vue 文件中 template 的格式化工具 "vetur.format.defaultFormatter.html": "prettyhtml", // 显示 markdown 中英文切换时产生的特殊字符 "editor.renderControlCharacters": true, "vetur.format.defaultFormatter.js": "vscode-typescript", // // eslint 检测文件类型 "eslint.validate": [ "javascript", "javascriptreact", { "language": "html", "autoFix": true }, { "language": "vue", "autoFix": true } ], "editor.quickSuggestions": { "strings": true }, "explorer.confirmDragAndDrop": false, "editor.detectIndentation": false, // vue 注释问题 "files.associations": { "*.vue": "html" }, "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, "[vue]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, "[javascript]": { "editor.defaultFormatter": "Wscats.eno" }, "editor.renderIndentGuides": false, "explorer.confirmDelete": false, "git.autofetch": true, "[json]": { "editor.defaultFormatter": "vscode.json-language-features" }, "git.confirmSync": false, "javascript.updateImportsOnFileMove.enabled": "always", "javascript.format.insertSpaceBeforeFunctionParenthesis": true, "typescript.format.insertSpaceBeforeFunctionParenthesis": true, "javascript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": true, "vetur.validation.template": false, "typescript.format.insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": true, "editor.formatOnType": true, "editor.fontSize": 35, "terminal.integrated.tabs.enabled": true, "eslint.autoFixOnSave": true, "editor.fontLigatures": null, "files.autoSave": "afterDelay", "timeline.excludeSources": [ "git-history" ], "[html]": { "editor.defaultFormatter": "vscode.html-language-features" }, "emmet.excludeLanguages": [

  "markdown"
],
"[css]": {
  "editor.defaultFormatter": "michelemelluso.code-beautifier"
},
"window.zoomLevel": -1,
// "eslint.enable": false //严格模式

}