Please note the plugin uses binaries from tailwindcss-class-sorter.
Please note the plugin hasn't been submitted to packagecontrol.io. Thus has to be installed manually.
Package Control: Add Repository
Method (Recommended)- Open
Command Palette
(Default:Primary + Shift + p
) Package Control: Add Repository
https://raw.githubusercontent.com/LetsZiggy/sublime-tailwindcss-class-sorter/main/repository-package.json
- Open
Command Palette
Package Control: Install Package
tailwindcss-class-sorter
- Open
- "Manual" Method (Requires manual update)
- Download this repository through
Download ZIP
- Rename folder to
tailwindcss-class-sorter
- Move folder to
[SublimeText]/Packages
folder- To access
[SublimeText]/Packages
folder:- Open/Restart
Sublime Text
- Open the
Command Palette
(Default:Primary + Shift + p
) Preferences: Browse Packages
- Open/Restart
- To access
- Restart
Sublime Text
- Download this repository through
tailwindcss class sorter: Format this file
tailwindcss class sorter: Get Group Index List
- Prints current state of [order_list] with index to
Console Panel
(Default:Primary + `
) - eg: [{"index": int, "group_name": str}, ...]
- Prints current state of [order_list] with index to
tailwindcss class sorter: Format this file
- Default:
Primary + Shift + .
- Default:
- Save current changes
- Use
tailwindcss class sorter: Format this file
Go to Preferences -> Package Settings -> tailwindcss-class-sorter -> Settings
To override global plugin configuration for a specific project, add a settings object with a tailwindcss-class-sorter
key in your .sublime-project
. This file is accessible via Project -> Edit Project
.
/* EXAMPLE */
{
"folders": [
{
"path": ".",
},
],
"settings": {
"tailwindcss-class-sorter": {
"format_on_save": true,
},
},
}
{
/**
* Automatically format when a file is saved
*/
"format_on_save": false,
/**
* Indicate if config is embedded in another config json/jsonc file
* Config will be expected to be in "tailwindcss_class_sorter" key/value
*/
"embedded_config": false,
/**
* Path to config json/jsonc file
* see https://github.com/LetsZiggy/tailwindcss-class-sorter/blob/main/dist/config.json
*
* To use default config, set "config_path": ""
*/
"config_path": "",
}