Multi-Cursor Magic
Multi-Cursor Magic enhances VS Code's multi-cursor capabilities with transformation tools for dates, numbers, geographic data, and more.
Features
Months
Select month names or numbers and transform them into various formats
Days of Week
Convert between full, abbreviated, and numeric day formats
US States
Convert between full state names and two-letter codes
Countries
Transform between country names and ISO codes
Number Operations
Apply various mathematical operations and formatting to numeric selections:
- Basic operations (+1, -1, double, square, etc.)
- Rounding (floor, ceiling, round, truncate)
- Format conversions (fixed decimal places, exponential, locale string)
- Base conversions (binary, octal, hexadecimal)
- And more!
JavaScript Evaluation
Evaluate JavaScript expressions directly
Text Padding
Pad selections to match the length of the longest selection
Usage
- Select multiple instances of text you want to transform
- Open the Command Palette (
Ctrl+Shift+P / Cmd+Shift+P )
- Type "Multi-Cursor Magic" to see available commands
- Choose the transformation you want to apply
| |