Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Lazy ExpanderNew to Visual Studio Code? Get it now.
Lazy Expander

Lazy Expander

nsnet

| (0) | Free
Expand brace patterns like *:{text-sm,font-bold} into multiple values
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

🦥 Lazy Expander

Expand brace patterns into multiple values — directly in the editor.

Inspired by Tailwind CSS workflows where repeating a prefix for every class gets tedious.

Demo

input:  *:{text-sm,font-bold,text-gray-500}
output: *:text-sm *:font-bold *:text-gray-500

⚡ Commands

Open the Command Palette (Ctrl+Shift+P) and type Lazy Expander:

Command Output
Lazy Expander: Inline item1 item2 item3
Lazy Expander: Inline with Separator item1, item2 / item1 \| item2 / custom
Lazy Expander: Multiple Lines item1 item2 item3 (one per line)
Lazy Expander: Multiple Lines Numbered 1. item1 2. item2 / - item1 - item2

🖱️ Usage

Mode 1 — Selection

Select a brace pattern in the editor → run a command → result replaces the selection.

Mode 2 — No Selection

Run a command → type the pattern in the input box → result is inserted at the cursor ✍️.

💡 If no editor is open, result is copied to clipboard instead.


🧩 Patterns

Comma-separated values

*:{text-sm,font-bold,text-gray-500}
→  *:text-sm  *:font-bold  *:text-gray-500

Numeric range

col-{1..4}
→  col-1  col-2  col-3  col-4

Range with step

{0..10..2}
→  0  2  4  6  8  10

Cartesian product (multiple groups)

{hover,focus}:text-blue-500
→  hover:text-blue-500  focus:text-blue-500

✂️ Separator Options (Inline with Separator)

Option Value
Comma ,
Pipe \|
Semicolon ;
Slash /
Tab \t
✏️ Custom... Type your own

🔢 Numbering Options (Multiple Lines Numbered)

Option Example output
0 to X 0. item 1. item 2. item
1 to X 1. item 2. item 3. item
a to x a. item b. item c. item
A to X A. item B. item C. item
- Bullet - item - item - item

💡 Spaces around commas are trimmed automatically — *:{ text-sm , font-bold } works the same as *:{text-sm,font-bold}.


📦 Installation

From GitHub Releases

  1. Download the latest .vsix from Releases
  2. Open VS Code → Extensions panel (Ctrl+Shift+X)
  3. Click ··· (top right) → Install from VSIX...
  4. Select the downloaded .vsix file

Install from VSIX

Or via terminal:

code --install-extension lazy-expander-0.1.1.vsix

📄 License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft