Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a search history feature for VS Code?

In VS Code I'm missing the ability to re-run an earlier search. A hit in a search often leads me to quickly check out something else by doing a new search, but after that side-trip I want to be able to the return to the original search results. Is that feature hiding in plain sight, or if not is there an extension that provides it?

like image 274
eclux Avatar asked Apr 27 '18 19:04

eclux


People also ask

Can you see history in VS code?

Visual Studio Code allows us to check the history of navigated files in Navigation History lists. You can open this window from “Goto–> Navigation History” or by just simply pressing Ctrl + Tab. This will bring list of all previously navigated files with in Visual Studio Code.

How do I check my VS code file history?

When you have repository open in Visual Studio code, you can execute the command Git: View History (git log) from the command Plate. This will open the Git History Window with all change logs for the repository. You can then select individual commits for detailed change logs for each of them.

How do you find logs vs codes?

Viewing Kubernetes logs using kubectl To open the Log Viewer, open the command palette (press Ctrl / Cmd + Shift + P or click View > Command Palette) and then run Cloud Code: View Logs.


1 Answers

Alt-Page up/down will work on Windows when the search panel input has focus to cycle through recent search terms. But they won't necessarily bring back the actual search results, but you don't have to re-enter the search terms anyway.

ADDED June, 2018:

As of v1.24 you can do the same for the replace terms:

Replace term history in Search view

You can now navigate to your previous replace terms in the Search View.

Alt+Up navigates backward in the history.

Corresponding command is search.replaceHistory.showPrevious.

Alt+Down navigates forward in the history.

Corresponding command is search.replaceHistory.showNext.

From May, 2018 release notes: replace term history

like image 118
Mark Avatar answered Sep 27 '22 23:09

Mark