vue的settings.json格式化配置
{ "editor.renderWhitespace": "none", "vetur.validation.template": false, "breadcrumbs.filePath": "last", "workbench.startupEditor": "newUntitledFile", "liveServer.settings.CustomBrowser": "chrome", "liveServer.settings.donotVerifyTags": true, "liveServer.settings.donotShowInfoMsg": true, "[html]": { "editor.defaultFormatter": "HookyQR.beautify" }, "diffEditor.ignoreTrimWhitespace": false, "eslint.codeAction.showDocumentation": { "enable": true }, // tab 大小为2个空格 "editor.tabSize": 2, // 100 列后换行 "editor.wordWrapColumn": 100, // 保存时格式化 "editor.formatOnSave": true, // // 开启 vscode 文件路径导航 // "breadcrumbs.enabled": true, // prettier 设置语句末尾不加分号 "prettier.semi": false, // prettier 设置强制单引号 "prettier.singleQuote": false, // 选择 vue 文件中 template 的格式化工具 "vetur.format.defaultFormatter.html": "prettyhtml", // 显示 markdown 中英文切换时产生的特殊字符 "editor.renderControlCharacters": true, "eslint.autoFixOnSave": true, // eslint 检测文件类型 "eslint.validate": [ "javascript", "javascriptreact", { "language": "html", "autoFix": true }, { "language": "vue", "autoFix": true } ], "editor.codeActionsOnSave": { "source.fixAll.eslint": true }, // vetur 的自定义设置 "vetur.format.defaultFormatterOptions": { "prettier": { "singleQuote": true, "semi": false } }, // 修改500ms后自动保存 "editor.formatOnSaveTimeout": 500, "files.autoSaveDelay": 500, "editor.codeActionsOnSaveTimeout": 500, "[javascript]": { "editor.defaultFormatter": "vscode.typescript-language-features" }, "editor.defaultFormatter": "esbenp.prettier-vscode", "javascript.updateImportsOnFileMove.enabled": "always" }