I'm trying to use multi-cursor to select multiple occurrences of a regular expression search in Visual Studio Code, but I can't figure out how to make multi-cursor use the regex pattern instead of just the selected text.
Here's what I'm doing:
Problem is, when you the text editor (step 2), it's not using the regex pattern anymore.
How can I use multi-cursor with regex search in Visual Studio Code?
editor.action.selectAllMatches
(Alt+Enter
)Alt+click
a selection if you want to remove it from the setIf needed select a region of the file first. When opening the find dialog click the Find in Selection button (3 lines) first.
editor.action.selectAllMatches
(Alt+Enter
)editor.action.selectHighlights
(Ctrl+Shift+L
)Alt+click
a selection if you want to remove it from the setAfter you have done your edits and you still have multi cursors:
Esc
till they are goneSome Emmet commands remove the multi cursor. So sometimes you have to do the selection again or change the order of your edits.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With