Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update command name and description
  • Loading branch information
bradlc committed Aug 31, 2023
commit a5b5dc903ed19b640b4ad65d936b351e72199258
4 changes: 2 additions & 2 deletions packages/vscode-tailwindcss/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ By default VS Code will not trigger completions when editing "string" content, f

Reveal the language server log panel. This command is only available when there is an active language server instance.

### `Tailwind CSS: Sort Classes in Selection`
### `Tailwind CSS: Sort Selection` (pre-release)

Treat the current selection(s) as a list of classes and sort them based on [our recommended class order](https://tailwindcss.com/blog/automatic-class-sorting-with-prettier#how-classes-are-sorted). This command is only available when the current document belongs to an active Tailwind project and the `tailwindcss` version is `3.0.0` or greater.
When a list of CSS classes is selected this command can be used to sort them in [the same order that Tailwind orders them in your CSS](https://tailwindcss.com/blog/automatic-class-sorting-with-prettier#how-classes-are-sorted). This command is only available when the current document belongs to an active Tailwind project and the `tailwindcss` version is `3.0.0` or greater.

## Extension Settings

Expand Down
2 changes: 1 addition & 1 deletion packages/vscode-tailwindcss/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
{
"command": "tailwindCSS.sortSelection",
"title": "Tailwind CSS: Sort Classes in Selection",
"title": "Tailwind CSS: Sort Selection",
"enablement": "editorHasSelection && resourceScheme == file && tailwindCSS.activeTextEditorSupportsClassSorting"
}
],
Expand Down