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
- Expand directories with
l(right) when the cursor is over a directory.
- Collapse directories with
- 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 (or
- Go To Symbol in File with
CMD-SHIFT-Oin Mac (or
- Go To Symbol in Workspace with with
CMD-Tin Mac (or
Likewise you can use
j with panes and palettes. Whenever you open a command palette or the Go To panes, you can:
TABwhich will take you to the selection area and,
- From there you can use
jto go up and down to the item you desire.
Enterand you’ll either open a file or perform a command palette action.
Written by Jaime González García , Dad, Husband, Front-end software engineer, UX designer, amateur pixel artist, tinkerer and master of the arcane arts. You should follow him on Twitter where he shares useful stuff! (and is funny too).Follow @vintharas