In Visual Studio Code, I am searching for a regular expression and have enabled "find in selection". Now I want to select all the matches that I found. My problem is that if I use "Select all occurrences of find match" from the command palette, then it repeats the search for the entire file and selects all of those occurrences.
How do I limit "Select all occurrences of find match" to only the matches that were within my original selection?
Do you want to select all the occurrences of a piece of code? How to use: Press Ctrl + Alt + Shift + J on Windows/Linux, and ⌘ + ^ + G on macOS.
Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.
Ctrl + Shift + L to select all occurrences of current selection.
Use editor.action.selectAllMatches
: currently bound to Alt-Enter
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