设置vs code代码在一行显示
设置 -》 首选项 -》 setting -》vetur —> setting.json里放入下面代码
{
"vetur.format.defaultFormatter.js": "vscode-typescript",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "force-expand-multiline",
"wap_line_length": 220,
"end_with_newline": false
},
"prettyhtml": {
"printWidth": 220,
"singleQuote": false,
"wrapAttributes": false,
"sortAttributes": false
}
},
}
下方是我微信公众号的二维码,可以扫码关注以下,后期博文推送主要在公众号上面,有什么问题也可以通过公众号跟我发消息哦~