打开设置》扩展》Beautify config》settings.json,在文件中添加
{
"workbench.colorTheme": "Default Light+",
"beautify.language": {
"js": {
"type": [
"javascript",
"json"
],
"filename": [
".jshintrc",
".jsbeautify"
]
},
"css": [
"css",
"scss",
"less"
],
"html": [
"htm",
"html",
"vue"
]
},
"[html]": {
"editor.defaultFormatter": "HookyQR.beautify",
},
"liveServer.settings.donotShowInfoMsg": true,
"editor.bracketPairColorization.enabled": true,
"beautify.config": {
"brace_style":"collapse,preserve-inline",
"indent_size": 4
},
"editor.detectIndentation": false,
"[vue]": {
"editor.defaultFormatter": "HookyQR.beautify"
}
}