{
“editor.tabSize”: 2,
“terminal.integrated.rendererType”: “dom”,
// 添加vue支持
“editor.formatOnSave”: true,
“editor.defaultFormatter”: “dbaeumer.vscode-eslint”,
“eslint.validate”: [
“javascript”,
“javascriptreact”,
“vue”
],
“files.associations”: {
“.cjson": “jsonc”,
".wxss”: “css”,
“*.wxs”: “javascript”
},
“emmet.includeLanguages”: {
“wxml”: “html”
},
“editor.codeActionsOnSave”: {
“source.fixAll.eslint”: true
},
“[html]”: {
“editor.defaultFormatter”: “esbenp.prettier-vscode”
},
“[javascript]”: {
“editor.defaultFormatter”: “esbenp.prettier-vscode”
},
“[vue]”: {
“editor.defaultFormatter”: “octref.vetur”
},
“cSpell.enabledLanguageIds”: [
“asciidoc”,
“c”,
“cpp”,
“csharp”,
“css”,
“git-commit”,
“go”,
“graphql”,
“handlebars”,
“haskell”,
“html”,
“jade”,
“java”,
“javascript”,
“javascriptreact”,
“json”,
“jsonc”,
“latex”,
“less”,
“markdown”,
“php”,
“plaintext”,
“python”,
“pug”,
“restructuredtext”,
“rust”,
“scala”,
“scss”,
“text”,
“typescript”,
“typescriptreact”,
“yaml”,
“yml”,
“vue”
],
“[jsonc]”: {
“editor.defaultFormatter”: “vscode.json-language-features”
},
“vetur.format.defaultFormatter.js”: “vscode-typescript”,
“javascript.format.insertSpaceBeforeFunctionParenthesis”: true,
“vetur.format.defaultFormatter.html”: “js-beautify-html”,
}
vscode格式化Eslint+prettier+vetur
最新推荐文章于 2024-08-10 13:50:57 发布