Better Cursors
Select some text, press F1, choose 'Create Cursors In Selection' and enter the character (or characters) where you want to create cursors.
Once your multiple cursors are created, move them around...
Commands
Create Cursors In Selection
- prompts for some text to find in the selection and creates cursors at all locations.
Move Cursors To Next
- prompts for some text and moves all cursors to the next instance on the line of the that text
Move Cursors To Previous
- prompts for some text and moves all cursors to the previous instance on the line of the that text
Move Cursors To Next With Select
- prompts for some text and moves all cursors to the next instance on the line of the that text with selection
Move Cursors To Previous With Select
- prompts for some text and moves all cursors to the previous instance on the line of the that text with selection
Move Cursors To First
- prompts for some text and moves all cursors to the first instance on the line of the that text
Move Cursors To Last
- prompts for some text and moves all cursors to the last instance on the line of the that text
Move Cursors To Next Using Same Term
- moves all cursors to the next instance on the line using the same text
Move Cursors To Previous Using Same Term
- moves all cursors to the previous instance on the line of the that text using the same text
Move Cursors To First Using Same Term
- moves all cursors to the first instance on the line of the that text using the same text
Move Cursors To Last Using Same Term
- moves all cursors to the last instance on the line of the that text using the same text
Restore Previous Cursors
- restores the previous set of cursors (after a move command)
Notes:
When creating cursors, if there is no selection, the whole document will be used.
When better-cursors.scope
is set to line
(the default):
- If there are no previous or next instances of the text on a line, the cursor will be removed.
- If there are no instances found on any line, the cursors won't be changed.
When better-cursors.scope
is set to document
:
- Multiple cursors will be collapsed if they find the same instance of the search term.
Configuration
better-cursors.scope
determines how far to search. Setting to line
(the default) searches only to the end of the line containing the cursor. Setting to document
will keep searching on subsequent lines, up to the end of the document.
Installing
You can install the latest version of the extension via the Visual Studio Marketplace here.
Source Code
The source code is available on GitHub here.
Credits
Icon made by Freepik from www.flaticon.com is licensed by CC 3.0 BY