7

Is it possible to have multiple searches in Visual Studio Code?

To search on:

  • term A have the results in one search window
  • and then search on term B and have the results in another window

and always have these two windows visible (like in Visual Studio).

michal.jakubeczy
  • 8,221
  • 1
  • 59
  • 63
  • 1
    You can now create as many search editors as you like (in early 2020). See https://code.visualstudio.com/updates/v1_43#_search-editors and https://stackoverflow.com/a/59230054/836330 – Mark Apr 14 '20 at 00:57

2 Answers2

21

Here's how do to this currently VSCode(1.51.0):

  1. Open the search panel on the left
  2. On the top there is a + Document icon (second from the right)

enter image description here

  1. Click this - it will open a search window as a editor tab.
dwjohnston
  • 11,163
  • 32
  • 99
  • 194
  • almost perfect, if it could use the search panel to display results instead of opening an editor. I really like the old visual studio search 'result 1', 'result 2' ...tabs. oh well. – Tom Dec 27 '20 at 03:07
  • You can add a Keyboard Shortcut (Preferences -> Keyboard Shortcuts) for the action `search.action.openNewEditor` (e.g. `ALT + F`) instead of doing this manually. – MarcusS Aug 03 '23 at 11:04
3

This is an open issue on the GitHub repo, and is on the roadmap for 2019.

Avi Kaminetzky
  • 1,489
  • 2
  • 19
  • 42
  • 1
    Well, it's still showing on the 2020 Roadmap (made at the end of 1019) but the legend says this is completed (has a checkmark, not a bullet, running guy, etc.) but I still can't figure out how to do this, and found my question already asked here. "Find Refs" must be considered a separate feature from "Search"? – JDługosz Aug 14 '20 at 14:02