there are a lot of cases, especially in SPA's (angular, vue, etc)... where a component has many attributes...
and for me, in a scenario like this:
<mat-progress-spinner *ngIf="isSavingData" mode="indeterminate" diameter="18" color="accent"></mat-progress-spinner>
I am using html.format.wrapAttributes": "force-expand-multiline", which does the work quite well for me... where it produces:
not only this line, but also sparing 3 other lines... which makes my code less vertically long and can see it more at the first glance...
So what I would like, and I am sure there are many others that agree with me... to have some kind of hybrid of a system...
right now the "html.format.wrapLineLength": 80, only works when the wrapAttributes is set to 'auto' ... I wish it would work with force-expand-multiline, or in this case would be names 'expand-multiline' ... or 'auto-expand-multiline' ...
So, formatting in HTML is kinda frustrating...
disclaimer using VSCode
there are a lot of cases, especially in SPA's (angular, vue, etc)... where a component has many attributes...
and for me, in a scenario like this:
<mat-progress-spinner *ngIf="isSavingData" mode="indeterminate" diameter="18" color="accent"></mat-progress-spinner>
I am using html.format.wrapAttributes": "force-expand-multiline", which does the work quite well for me... where it produces:
(except the closing tag, feel should be like
></mat-progress-spinner>
it is in the scenarios like this:
... that I am frustrated. While breaking attributes in multi-line is good for the readability, it is also working against it...
this is more readable to me....
<my-comp class="f-panel" *ngIf="isFinished"></my-comp>
not only this line, but also sparing 3 other lines... which makes my code less vertically long and can see it more at the first glance...
So what I would like, and I am sure there are many others that agree with me... to have some kind of hybrid of a system...
right now the "html.format.wrapLineLength": 80, only works when the wrapAttributes is set to 'auto' ... I wish it would work with force-expand-multiline, or in this case would be names 'expand-multiline' ... or 'auto-expand-multiline' ...
so instead of going
on settings
it would go:
and would produce something like this:
if I could get something like this, would be amazing!
Environment
OS: Windows