Reputation: 2433
As in Visual Studio Code with html.format.wrapAttributes = "auto", I would like to automatically wrap the html attributes per lines on saving.
For example, this:
<div class="mt-1">
<span class="form-alert-label" *ngIf="displayMessage.address">
{{displayMessage.address | translate}}
</span>
</div>
will become:
<div class="mt-1">
<span class="form-alert-label"
*ngIf="displayMessage.address">
{{displayMessage.address | translate}}
</span>
</div>
I guess it's not something built-in in Visual Studio, but there is probably an extension which can do that, any recommendations?
Upvotes: 1
Views: 257
Reputation: 23828
Perhaps Resharper Extension could realize your needs. But it is a paid extension and new users have 30 days for free use.
It shows that it could wrap HTML attributes from this link.
If this does not meet your requirements, you should suggest your idea to the DC Forum.
Upvotes: 1