{
“vetur.format.defaultFormatter.html”: “js-beautify-html”,
“vetur.format.defaultFormatterOptions”: {
“js-beautify-html”: {
“wrap_line_length”: 120,
“wrap_attributes”: “auto”,
“end_with_newline”: false
},
“prettier”: {
// 不加分号
“semi”: false,
// 用单引号
“singleQuote”: true,
// 禁止随时添加逗号
“trailingComma”: “none”
}
},
“[vue]”: {
“editor.defaultFormatter”: “octref.vetur”
},
“[html]”: {
“editor.defaultFormatter”: “Vue.volar”
},
“editor.codeActionsOnSave”: {
“source.fixAll.eslint”: true
},
}
vscode settings.json 配置
最新推荐文章于 2024-07-17 10:34:33 发布