The following works for a single file:
- CTRL + F
- Type your search string
- CTRL + SHIFT + L to select all occurrences found (max. 999)
- ESC (or close search dialog with top-right X)
- CTRL + I to select whole lines
- CTRL + C
- Open new file
- CTRL + V
The following works for a single file: