Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MagicSplitNew to Visual Studio Code? Get it now.
MagicSplit

MagicSplit

nsnet

|
1 install
| (0) | Free
Insert N synced tab stops at runtime — space, newline, or any custom separator.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

MagicSplit

A VS Code extension that inserts N synced tab stops at runtime — solving VS Code's inability to do dynamic multi-cursor snippets natively.

Why

VS Code snippets require hardcoded tab stop counts (${1} ${1} ${1}). There's no way to say "give me N synced cursors" at runtime. Alt+Click needs precise mouse positioning. Emmet only works in .css — not in JS/TS/JSX/TSX where CSS values are common.

Commands

Command What it does
Magic Split: Insert Inline N tab stops separated by space
Magic Split: Insert Multi-line N tab stops on separate lines
Magic Split: Insert with Separator N tab stops with a custom separator

Usage

  1. Place cursor where you want to insert
  2. Open Command Palette (Ctrl+Shift+P)
  3. Run a MagicSplit command → enter N → type once, all positions update

MagicSplit demo

Use Cases

  • CSS variable repetition: var(--x) var(--x) var(--x)
  • Color channels: rgb(255, 255, 255)
  • Box-shadow layers (multi-line)
  • TypeScript union types: "a" | "b" | "c"

Configuration

Add custom separators via magicSplit.customSeparators in settings:

"magicSplit.customSeparators": [
  { "label": "Comma + Space", "value": ", ",  "enabled": true },
  { "label": "Pipe",          "value": " | ", "enabled": true },
  { "label": "Tab",           "value": "\t",  "enabled": false }
]

Installation

Download the latest .vsix from Releases and run:

code --install-extension magic-split-x.x.x.vsix

License

MIT

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