Enhanced File Explorer, Panes and Palettes
You can take advantage of your newly learned Vim bindings to interact with the VSCode’s File explorer. Jump inside the File explorer via the command palette, or by simply moving from the code window via <CTRL-W> h and you’ll be able to:
- Traverse file explorer up and down with
kandj. - Expand directories with
l(right) when the cursor is over a directory. - Collapse directories with
h(left). - Open files with
l(right) when the cursor is on a file.
This is nice if you’re new to a project and want to have an idea about how the project is structured. Otherwise, always prefer using Visual Studio’s Go To functionality. Remember:
- Go To File with
CMD-Pin Mac (orCTRL-Pin Windows/Linux) - Go To Symbol in File with
CMD-SHIFT-Oin Mac (orCTRL-SHIFT-Oin Windows/Linux) - Go To Symbol in Workspace with with
CMD-Tin Mac (orCTRL-Tin Windows/Linux)
Likewise you can use k and j with panes and palettes. Whenever you open a command palette or the Go To panes, you can:
- Type
TABwhich will take you to the selection area and, - From there you can use
kandjto go up and down to the item you desire. - Press
Enterand you’ll either open a file or perform a command palette action.

Written by Jaime González García , dad, husband, software engineer, ux designer, amateur pixel artist, tinkerer and master of the arcane arts. You can also find him on Twitter jabbering about random stuff.
