Visual studio code - how to copy search results?

前端 未结 4 1832
梦如初夏
梦如初夏 2020-12-13 03:25

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

4条回答
  •  甜味超标
    2020-12-13 04:03

    This will work for a single file, assuming each line you care about begins with the search text: 1. Highlight your search string 2. CTRL + SHIFT + L to select all occurrences found 3. SHIFT + ↓ to select all of those lines 4. CTRL + C 5. Open a new file 6. CTRL + V

提交回复
热议问题