Benny
Benny

Reputation: 857

Visual code key shortcut navigate search sidebar?

Ctrl+shift+f opens up the search all files sidebar in Visual Studio Code. But what are the shortcuts for navigating the search result? You can use the arrows in file explorer to navigate files in the but not for search results?

Upvotes: 5

Views: 1198

Answers (2)

Saeb Amini
Saeb Amini

Reputation: 24380

CTRL + (down arrow) moves focus to the results pane.

Upvotes: 2

Mark
Mark

Reputation: 180641

There is an unbound command search.action.focusSearchList which will focus the search list and then the arrow keys work.

So set it to your chosen keybinding (in keybindings.json) like so:

{
  "key": "alt+m",
  "command": "search.action.focusSearchList"
},

or just click in the search list (changing focus to it) and then arrows work.

You could also try F4 and Shift+F4 which will open in a preview editor the next/previous search result.

Upvotes: 7

Related Questions