angular-template-formatter icon indicating copy to clipboard operation
angular-template-formatter copied to clipboard

Only format the attributes that exceed a specified line length

Open nakhbari opened this issue 6 years ago • 0 comments

Expanding each attribute to a new line can make a file very long. It would be nice to only wrap the attributes that exceed the line length

Example

Before
<div>
    <div>
        <mat-table [dataSource]="dataSource">
            <ng-container matColumnDef="name">
                <mat-header-cell *matHeaderCellDef name="some really long string value">
                    Column name
                </mat-header-cell>
        </mat-table>
    </div>
</div>
After
<div>
    <div>
        <mat-table [dataSource]="dataSource">
            <ng-container matColumnDef="name">
                <mat-header-cell *matHeaderCellDef 
                                 name="some really long string value">
                    Column name
                </mat-header-cell>
        </mat-table>
    </div>
</div>

nakhbari avatar Oct 11 '18 16:10 nakhbari