Sorting of the tag attributes in the specified order.
If you want to thank me, or promote your Issue.
Sorry, but I have work and support for plugins requires some time after work. I will be glad of your support.
select Extensions: Install Extensions
.attrs-sorter
.See the extension installation guide for details.
Format code
.Sorting of the tag attributes (attrs-sorter)
.attrsSorter.order
string[]
An array of attributes in the correct order. See posthtml-attrs-sorter#order for more details.
For example:
{
"attrsSorter.order": ["data-.+", "aria-.+", "class"]
}
For changes keyboard shortcuts, create a new rule in File -> Preferences -> Keyboard Shortcuts
:
{
"key": "ctrl+shift+c",
"command": "attrsSorter.execute"
}
See the Releases section of our GitHub project for changelogs for each release version.
This software is released under the terms of the MIT license.