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.
- Press F1 and
select Extensions: Install Extensions
. - Search for and select
attrs-sorter
.
See the extension installation guide for details.
- You can use global keyboard shortcut ALT+SHIFT+F or right-click context menu
Format code
. - Or press F1 and run the command named
Sorting of the tag attributes (attrs-sorter)
.
- HTML (+ HTML like languages)
- Jade (+ Pug)
attrsSorter.order
- Type:
string[]
- Default: http://codeguide.co/#html-attribute-order
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.