I'm looking for a formatter, in vscode or online that will take those lines of code:
<button type="button">Green</button>
<button type="button" >Blue</button>
And will format the tags to have the props in order:
<button type="button">Green</button>
<button type="button">Blue</button>
CodePudding user response:
I found this extension: Sorting HTML and Jade attributes
Open html file.
Press F1 and run the command named Sorting of the tag attributes (attrs-sorter)
CodePudding user response:
Use Beautify From vscode marketplace, Adjust settings for formatting shortcut Default Shortcut : Windows Shift Alt F