天天看点

VScode中如何实现标签、组件属性格式化自动换行

在一些项目中,我们常看见这样的布局,当标签属性太长时进行换行操作,这又是如何实现的呢 ?

VScode中如何实现标签、组件属性格式化自动换行

在设置中,其中需要安装js-beautify-html插件

"vetur.format.defaultFormatterOptions": {
     "wrap_attributes": "force-expand-multiline"
     "js-beautify-html": {
     "wrap_attributes": "force-expand-multiline",
     "end_with_newline": false
   }
 }
           

继续阅读