Zach
Zach

Reputation: 620

Vscode "next search result" shortcut does not work

When I use the shortcut associated with "search.action.focusNextSearchResult" in vscode while searching something nothing happens.

This action is initially associated with F4 which is also used for other shortcuts. I thought it may be the problem so I reassigned it to an unused shortcut but it did not help.

I am using the extension "Emacs Friendly Keymap" (don't know if it can cause the problem).

Do you know how I could make it work?

Upvotes: 0

Views: 1051

Answers (1)

Mark
Mark

Reputation: 182831

That shortcut, used to go to the next search result, only works in a search editor. It has these context keys:

hasSearchResult || inSearchEditor

Are you using it in a separate search editor? It does work there. Here is one way to open a Search Editor:

open a search editor

If you are using the Find widget then use either of these:

Enter when focus is still in the Find widget or F3 when focus is in the editor.

If you are doing a search across files, then just a downarrow will go to the next result.

Upvotes: 1

Related Questions