{
"emmet.excludeLanguages": ["markdown"],
"emmet.includeLanguages": {
"vue-html": "html",
"vue": "html"
},
// 保存时自动格式化
"editor.formatOnSave": true,
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"workbench.welcomePage.hiddenCategories": ["Setup", "Beginner"],
"workbench.startupEditor": "welcomePage",
"emmet.showSuggestionsAsSnippets": true,
"emmet.triggerExpansionOnTab": true,
"liveServer.settings.donotShowInfoMsg": true,
"liveServer.settings.CustomBrowser": "chrome",
"git.autofetch": true,
"workbench.iconTheme": "material-icon-theme",
"vetur.completion.scaffoldSnippetSources": {
"workspace": "💼",
"user": "🗒️",
"vetur": "✌"
},
"editor.formatOnType": true,
"html.format.contentUnformatted": "",
// eslint格式化字符串
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
// #让prettier使用eslint的代码格式进行校验
"prettier.eslintIntegration": true,
// #去掉代码结尾的分号
"prettier.semi": false,
// #使用单引号替代双引号
"prettier.singleQuote": true,
// #让函数(名)和后面的括号之间加个空格
"javascript.format.insertSpaceBeforeFunctionParenthesis": true,
// #让vue中的js按编辑器自带的ts格式进行格式化
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-aligned",
// #vue组件中html代码格式化样式
"prettier": {
"singleQuote": true,
"semi": false
}
}
}, //制表符符号eslint
// 选择 vue 文件中 template 的格式化工具
"vetur.format.defaultFormatter.html": "prettyhtml",
"path-intellisense.mappings": {
"@": "${workspaceRoot}/src"
},
"editor.language.brackets": [],
"editor.guides.bracketPairs": true,
"vetur.validation.template": false,
"php.validate.executablePath": "",
// vue 扩展的文件默认使用 prettier 进行格式化
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"sqltools.useNodeRuntime": true,
}