Use multi-cursor selections to do more!
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
2.2. Command: Right Align
- Open a vscode text editor or jupyter notebook text cell
- Place multiple selections or multiple cursors (eg by using by using
Alt+Left Click
or Ctrl+Alt+Up/Down Arrow
or other methods)
- Press
Ctrl+Shift+P
to open the command search
- Search for:
Align Left Selections by Adding Spaces
OR
Align Right Selections by Adding Spaces
- 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 ...
- Open a vscode text editor or jupyter notebook text cell
- place multiple selections or multiple cursors (eg by using by using
Alt+Left Click
or Ctrl+Alt+Up/Down Arrow
or other methods)
- Press
Ctrl+Shift+P
to open the command search
- Search for
Number Cursors from Zero
OR
Number Cursors from One
OR
Number Cursors from ...
OR
Number Cursors from ... choosing steps
- 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.