在一些项目中,我们常看见这样的布局,当标签属性太长时进行换行操作,这又是如何实现的呢 ?
![](https://img.haomeiwen.com/i9813501/f7c16ac8bf7406d3.png)
在设置中,其中需要安装js-beautify-html插件
"vetur.format.defaultFormatterOptions": {
"wrap_attributes": "force-expand-multiline"
"js-beautify-html": {
"wrap_attributes": "force-expand-multiline",
"end_with_newline": false
}
}
网友评论