VS Code Extensions
S

space-filler-multicursor

by palsch

Insert spaces at all multi-cursors until all are in one vertical line

Downloads

17

Rating

— (0)

Version

0.0.1

Last updated

Apr 07, 2026

A VS Code extension that aligns all your multicursors to the same column by inserting spaces.

How It Works

  1. Place multiple cursors in your editor (using Cmd+D, Option+Click, etc.)
  2. Run the Align All Cursors to Same Column command
  3. 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.

Related extensions