Sort your styles meaningfully
- Click here
- Click
Install
- Open the extensions panel in VS Code
- Search for
Style Sorter - Click
Install
- Press
Cmd/Ctrl + Shift + P - Type
Style Sorter: Sort - Press
Enter
-
Press
Cmd/Ctrl + , -
Search for
Style Sorter -
Choose desired order
-
Alphabetical: Sort alphabetically.
-
Concentric: Sort properties applying outside the box model, moving inward to intrinsic changes.
- Box
- Border
- Background
- Text
- Other
-
SMACSS: Sort from most important, flow affecting properties, to least important properties.
- Positioning
- Visibility
- Box model
- Dimensions
- Text
-
Frakto: Order from the outermost layout and positioning rules, moving inward through structure, style, and interaction — inspired by the browser’s render tree.
- Positioning
- Box Model
- Layout
- Typography
- Visual
- Transform
- Interaction
- Miscellaneous
-
- Extension is built on css-declaration-sorter.