I came across a need to select all matches in VS Code. This was the procedure, thanks to stack overflow. I altered them for Mac, since that’s what I was using. For Windows/Linux, substitute CMD with CTRL
- CMD + F
 - Type your search string
 - CMD + SHIFT + L to select all occurrences found (max. 999)
 - ESC (or close search dialog with top-right X)
 - CMD + C
 - Open new file
 - CMD + V
 
Works great! It’s a way for me to easily get ONLY my search string from a file and discard the rest.