Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Multi-Cursor ToolsNew to Visual Studio Code? Get it now.
Multi-Cursor Tools

Multi-Cursor Tools

engineernick

|
1,303 installs
| (0) | Free
align multi-selections using spaces, insert incrementing numbers at selections, seek and expand selections. Formally called 'nick_says'
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Multi-Cursor Tools

Use multi-cursor selections to do more!

  • 1. Changes
  • 2. Usage
    • 2.1. Command: Left Align
    • 2.2. Command: Right Align
    • 2.3. Command: Number Cursors from ...
    • 2.4. Command: Seek to Next Occurrence
    • 2.5. Command: Expand to Next Occurrence
    • 2.6. Command: Sticky Line Above - ctrl+K ctrl+shift+enter
    • 2.7. Command: Reverse and Collect Lines - ctrl+K ctrl+shift+R

Formally named "nick_says" then "Multi-Cursor-Align", now "Multi-Cursor Tools".

1. Changes

Please see the Change Log for recent changes.

2. Usage

2.1. Command: Left Align

Left Align

2.2. Command: Right Align

Right Align

  1. Open a vscode text editor or jupyter notebook text cell
  2. Place multiple selections or multiple cursors (eg by using by using Alt+Left Click or Ctrl+Alt+Up/Down Arrow or other methods)
  3. Press Ctrl+Shift+P to open the command search
  4. Search for:
    • Align Left Selections by Adding Spaces OR
    • Align Right Selections by Adding Spaces
  5. Spaces will be added before each cursor such that all cursors are now vertically aligned
    • Note: Weird stuff happens if there are two cursors on the same line, but it doesn't break anything; You can use Ctrl+Z to undo.

2.3. Command: Number Cursors from ...

Right Align

  1. Open a vscode text editor or jupyter notebook text cell
  2. place multiple selections or multiple cursors (eg by using by using Alt+Left Click or Ctrl+Alt+Up/Down Arrow or other methods)
  3. Press Ctrl+Shift+P to open the command search
  4. Search for
    • Number Cursors from Zero OR
    • Number Cursors from One OR
    • Number Cursors from ... OR
    • Number Cursors from ... choosing steps
  5. Numbers will be inserted at each cursor
    • starting at 0 or 1 respectively or prompting for the starting number and step (increment number) respectively
    • ordered in the same way that cursors were created

2.4. Command: Seek to Next Occurrence

Prompts for a search string, then moves current selection(s) forwards to the next occurrence, staying on the same line as the current selection(s) end.

Does NOT use regex patterns

2.5. Command: Expand to Next Occurrence

Prompts for a search string, then expands current selection(s) forwards to before the next occurrence of the search string, staying on the same line as the current selection(s) end.

Does NOT use regex patterns

2.6. Command: Sticky Line Above - ctrl+K ctrl+shift+enter

Similar to the built-in Line Above command, but it brings the text after the cursor along.

2.7. Command: Reverse and Collect Lines - ctrl+K ctrl+shift+R

Reverse selected lines, then remove newline characters.

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