Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Split shadcn tailwindcss class strings into new linesNew to Visual Studio Code? Get it now.
Split shadcn tailwindcss class strings into new lines

Split shadcn tailwindcss class strings into new lines

laurent lahmy

|
8 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

shadcn-tailwind-class-split

split cn("") tailwindcss classes line by line

demo

with mouse:

  • select string,
  • right click on selected string,
  • use the (first) command Split String by Space and Add Commas

with keyboard:

  • Shift Command P
  • Input Split String by Space and Add Commas
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft