19

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).

1

2 Answers 2

39

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.
Sign up to request clarification or add additional context in comments.

2 Comments

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.
You can add a Keyboard Shortcut (Preferences -> Keyboard Shortcuts) for the action search.action.openNewEditor (e.g. ALT + F) instead of doing this manually.
3

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

2 Comments

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"?
In the linked issue, there is a link to release notes which explains how to achieve this

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.