Martin Andersen
Martin Andersen

Reputation: 2738

VSCode - navigate in the file tree with the keyboard

I love VS Code, but I am really missing one feature from its big brother, Visual Studio.

In Visual Studio, you load the file in the editor when you navigate to it, and if you press enter, you jump into the editor and can start editing the file.

How can I do the same in VS Code?

VS Code keyboard shortcuts reference

Upvotes: 42

Views: 25147

Answers (2)

ifedapo olarewaju
ifedapo olarewaju

Reputation: 3441

On a MacOS, you'd use CMD+SHIFT+E to focus on the sidebar. Then you can use the arrow keys to navigate up and down the tree. To open a file or expand a folder, you can hit the spacebar key.

Upvotes: 29

fabriciorissetto
fabriciorissetto

Reputation: 10103

To Show Explorer / Toggle Focus press Ctrl+Shift ⇧+E in Windows/Linux, in macOS press Cmd ⌘+Shift+E.

It will focus on the explorer sidebar, then you can navigate through the file tree with the arrow-keys.

Upvotes: 52

Related Questions