美文网首页
VScode中如何实现标签属性换行

VScode中如何实现标签属性换行

作者: 白雪公主960 | 来源:发表于2018-07-31 15:35 被阅读1379次

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



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

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

相关文章

网友评论

      本文标题:VScode中如何实现标签属性换行

      本文链接:https://www.haomeiwen.com/subject/qehhvftx.html