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
k
andj
. - 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-P
in Mac (orCTRL-P
in Windows/Linux) - Go To Symbol in File with
CMD-SHIFT-O
in Mac (orCTRL-SHIFT-O
in Windows/Linux) - Go To Symbol in Workspace with with
CMD-T
in Mac (orCTRL-T
in 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
TAB
which will take you to the selection area and, - From there you can use
k
andj
to go up and down to the item you desire. - Press
Enter
and 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.