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

后端 未结 3 1248
情话喂你
情话喂你 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 21:05

    If you are planning to rebind F4 and Shift-F4 to different keys, please note that there are multiple actions bound to those keys:

    { "key": "f4",         "command": "goToNextReferenceFromEmbeddedEditor",       "when": "inReferenceSearchEditor"  },
    { "key": "shift+f4",   "command": "goToPreviousReferenceFromEmbeddedEditor",   "when": "inReferenceSearchEditor"  },
    { "key": "f4",         "command": "search.action.focusNextSearchResult",       "when": "hasSearchResult"          },
    { "key": "shift+f4",   "command": "search.action.focusPreviousSearchResult",   "when": "hasSearchResult"          },
    { "key": "f4",         "command": "goToNextReference",                         "when": "referenceSearchVisible"   },
    { "key": "shift+f4",   "command": "goToPreviousReference",                     "when": "referenceSearchVisible"   },
    { "key": "f4",         "command": "references-view.next",                      "when": "reference-list.hasResult" },
    { "key": "shift+f4",   "command": "references-view.prev",                      "when": "reference-list.hasResult" },
    

    For consistent behaviour, you may wish to rebind them all.

    In case VSCode has added any new keybinds since this answer, I recommend you open the Keyboard Shortcuts window and search for Shift+F4 there.

提交回复
热议问题