Go to File > Settings > Preferences. Expand Extensions and click on HTML. Scroll down until you find the setting Wrap Attribute. set to force-aligned
![](http://samuel.dalesjo.net/wp-content/uploads/2020/04/VS-Code-Wrap-Attributes.png)
Enabling this setting will make the formatter to but each html attributes on a new line. You activate the formatter by pressing Shift+Alt+ F
![](http://samuel.dalesjo.net/wp-content/uploads/2020/04/VS-Code-Wrap-Attributes-Preview.png)