vscode key binding for “goto next search result on the search results pane”?

后端 未结 3 1297
情话喂你
情话喂你 2021-02-06 20:06

Is there a vscode key binding for \"goto next search result on the search results pane\"?

I could not find it in the keybindings json or on http://code.visualstudio.com/

3条回答
  •  南旧
    南旧 (楼主)
    2021-02-06 20:59

    New in version 1.9.0

    Execute search.action.focusNextSearchResult (F4)

    and search.action.focusPreviousSearchResult (CTRL+F4)

    Original answer

    Unfortunately there is currently no command to go to the next entry in the search result pane. As a workaround you can execute workbench.view.search (by default* bound to CTRL+Shift+f) and navigate to the next item via and select it with ENTER.

    When you have executed actions.find (by default bound to Shift+f) in order to find text in the current file only, then you can use the editor.action.nextMatchFindAction command which is usually bound to F3. Its default binding is declared like this:

    { 
      "key": "f3",                    "command": "editor.action.nextMatchFindAction",
                                      "when": "editorFocus" 
    }
    

    The default shortcuts are based on the Windows version of VSCode

提交回复
热议问题