Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual studio code - how to copy search results?

Does Visual Studio Code have any way to copy the results of a search into a new window?

As a bonus, I'd really like to be able to drop the file name and just copy the lines containing the text of my search results to a new window.

For example, I'd like to to be able to copy the results of the search below to a new editor window. I don't mind if I need to install an extension to do it.

enter image description here

like image 854
user783836 Avatar asked Jan 31 '17 15:01

user783836


1 Answers

The following works for a single file:

  1. CTRL + F
  2. Type your search string
  3. CTRL + SHIFT + L to select all occurrences found (max. 999)
  4. ESC (or close search dialog with top-right X)
  5. CTRL + I to select whole lines
  6. CTRL + C
  7. Open new file
  8. CTRL + V
like image 59
user8858818 Avatar answered Oct 06 '22 16:10

user8858818