天天看點

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
   }
 }
           

繼續閱讀