Organize your CSS properties with just one click using this extension for Visual Studio Code
minimum supported version: 1.85.0
CSSPRO Sorter is an extension for Visual Studio Code designed to simplify and speed up the organization of properties in CSS files. It automates the process of rearranging CSS properties with just one click, following a pre-defined list that is fully customizable.
- Organize from a fully customizable pre-defined list;
- Remove unnecessary blank lines;
- Eliminate duplicate properties.
The idea behind CSSPRO Sorter came from dealing with complex web projects where efficient organization of CSS properties was a constant challenge. The extension was developed to provide a simple and quick solution, allowing for easy organization, saving time, and maintaining a cleaner codebase.
-
Open the Visual Studio Code Extensions Panel
Ctrl + Shift + X
orCmd + Shift + X
; -
Search for CSSPRO Sorter;
-
Install the extension.
After installing the extension, open a CSS file.
You can initiate the extension in two ways:
- Use the shortcut
Ctrl + Alt + O
orCmd + Alt + O
- Navigate to the Help > Show All Commands tab or the shorcut
Ctrl + Shift + P
orCmd + Alt + P
and type:
Organize with CSSPRO Sorter
(Optional) Configure the order of your properties in Extensions > CSSPRO Sorter ⚙ > Extension Settings.
Found a problem or have a suggestion? Feel free to open an issue or submit a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
Enjoy!