Space Filler Multicursor
A VS Code extension that aligns all your multicursors to the same column by inserting spaces.
How It Works
- Place multiple cursors in your editor (using
Cmd+D, Option+Click, etc.)
- Run the Align All Cursors to Same Column command
- The extension finds the rightmost cursor column and inserts spaces before every other cursor until they all line up
Example
Before (cursors shown as |):
const foo| = 1;
const longVariableName| = 2;
const x| = 3;
After:
const foo | = 1;
const longVariableName | = 2;
const x | = 3;
Usage
- Command Palette:
Align All Cursors to Same Column
- Keybinding:
Cmd+K A
Behavior Details
- If multiple cursors are on the same line, only the one with the smallest column index is kept.
- If only one cursor is active, a warning message explains how to use the command.
- The entire operation is a single undo step — one
Cmd+Z reverts everything.
- Column is calculated by character index (not visual/tab-expanded position).
Release Notes
0.0.1
Initial release.
| |