149

I came from Sublime to Visual Studio Code and I'm looking for the history of searches in the Visual Code , what was in the Sublime with -

Ctrl+Shift+F

enter image description here

and then just press to navigate between previous/next search.

How could I get the same functionality on Visual Studio Code on its search text field ?

enter image description here

My current Version is 1.5.2

1
  • I looked it up and verified that it now works. It works as long as your instance is open. As soon as you quit the app and come back, it's all gone. Commented Feb 7, 2019 at 16:36

4 Answers 4

290

Up: Shows the previous term in history

Down: Shows the next term in history

You can customize the keybinding to your liking using history.showPrevious and history.showNext

Sign up to request clarification or add additional context in comments.

8 Comments

Thanks. Man that action needs to be more discoverable.
In a Mac it´s option+up / down. And yes, not only should be more discoverable, but also showing a short list preview of the history will be welcome (just like Atom does).
It only works until you close Visual Studio Code on the latest version 1.23.1, after that search history is cleared.
Is there a way to preserve search history?
Is there a way to retrieve that part of history that matches what you typed? Because after a while it becomes useless to use the arrows to search for something that you typed a month ago, and it looks like searches performed with the arrows are not added to the history :(
|
49

It's Up and Down in the search edit box. It used to be that you had to use alt, but later they added just the arrow keys by themselves. The keyboard shortcut is customizable under history.showPrevious and history.showNext

1 Comment

Hmm. There should definitely be an ui for it. It's hard to find the search query you want when you have similar & long queries.
4

definitely it should be accessible by UI. Although the minimalistic UI is the best of VSC

you can navigate search recent history by Alt+up/donw

1 Comment

Please provide quality answers until you can write comments. Your answer here is a comment and not a real answer.
1

There is currently no search history in Visual Studio Code. But it's part of the September milestones as you can see here: https://github.com/Microsoft/vscode/issues/5508 So the feature will probably be shipped in October 2016.

1 Comment

This answer is outdated.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.