Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS Code Shortcut for navigating inside Command Palette and File Picker

In vs code, command palette and file picker can be opened with ctrl+shift+p and ctrl+p respectively, I want to set custom shortcut for moving down and up inside the list.
like alt+j(up/previous) and alt+k(down/next)

enter image description here

like image 877
Shamseer K Avatar asked Feb 18 '26 22:02

Shamseer K


1 Answers

To navigate up and down in the command palette or any quickOpen panel:

{
    "key": "alt+j",
    "command": "workbench.action.quickOpenSelectNext",
    "when": "inQuickOpen"
},
{
    "key": "alt+k",
    "command": "workbench.action.quickOpenSelectPrevious",
    "when": "inQuickOpen"
},

To navigate and trigger whichever command you end on:

{
    "key": "alt+j",
    "command": "workbench.action.quickOpenNavigateNext",
    "when": "inQuickOpen"
},
{
    "key": "alt+k",
    "command": "workbench.action.quickOpenNavigatePrevious",
    "when": "inQuickOpen"
},

Demo of the second set of keybindings - triggering the navigated-to command automatically - i.e., when you release the alt:

trigger quick input commands by navigation

like image 147
Mark Avatar answered Feb 21 '26 13:02

Mark