在一些項目中,我們常看見這樣的布局,當标簽屬性太長時進行換行操作,這又是如何實作的呢 ?

在設定中,其中需要安裝js-beautify-html插件
"vetur.format.defaultFormatterOptions": {
"wrap_attributes": "force-expand-multiline"
"js-beautify-html": {
"wrap_attributes": "force-expand-multiline",
"end_with_newline": false
}
}