Skip to main content

Command Palette

Search for a command to run...

VS Code Select by pattern with regular expression

Updated
1 min read

When searching for text using regex, the result can be many segments of code which are slightly different. Pressing Enter takes you from one search result to the next, but what if you want to select all of them at once? Hold down ALT key and then press Enter. Magic! Now you can copy all at once and paste it into a blank file or similar.

ALT + Enter

VSCodium

Part 1 of 1