fhdhsni
fhdhsni

Reputation: 1629

Navigating in VS Code Explorer

In VS code's Explorer side bar, how can I use ctrl+p and ctrl+n instead of up/down arrow keys for navigating among files?

Upvotes: 3

Views: 297

Answers (1)

fhdhsni
fhdhsni

Reputation: 1629

Add the following snippet to your keybindings.json (you can find it by Open Keyboard Shortcuts (JSON) command).

{
    "key": "ctrl+n",
    "command": "list.focusDown",
    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},
{
    "key": "ctrl+p",
    "command": "list.focusUp",
    "when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},

Upvotes: 2

Related Questions