Sorts your CSS declarations, or Less and SCSS, in Atom, never gets tired. If you want to define a sort order project-wide check out the css-declaration-sorter Node.js module.
All of the following commands are under the atom-text-editor[data-grammar~='css']
selector.
Command | Description |
---|---|
css-declaration-sorter:sort |
Sorts according to configured order in the settings |
css-declaration-sorter:sort-alphabetical |
Sorts alphabetical |
css-declaration-sorter:sort-smacss |
Sorts according to SMACSS |
css-declaration-sorter:sort-concentric-css |
Sorts according to Concentric CSS |
By default css-declaration-sorter:sort
is mapped to ctrl-alt-c
. You may want to use keyboard shortcuts for triggering the other commands. You can easily define your own.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.