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)

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:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With