Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode - navigate in the file tree with the keyboard

I love VSCode 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 to into the editor and can start editing the file.

How can I do the same in VSCode?

VSCode keyboard shortcuts reference

like image 887
Martin Andersen Avatar asked Dec 23 '16 14:12

Martin Andersen


People also ask

How do I navigate between files in VS Code?

Hold Ctrl and press Tab to view a list of all files open in an editor group. To open one of these files, use Tab again to pick the file you want to navigate to, then release Ctrl to open it. Alternatively, you can use Ctrl+Alt+- and Ctrl+Shift+- to navigate between files and edit locations.

How do you go up a directory in VS Code?

The File > Add Folder to Workspace command brings up an Open Folder dialog to select the new folder. Once a root folder is added, the Explorer will show the new folder as a root in the File Explorer. You can right-click on any of the root folders and use the context menu to add or remove folders.

What does Ctrl Shift P do in VS Code?

1. Ctrl+Shift+P, F1 ⮕ Show Command Palette. This shortcut opens the command palette in the vs-code, where we can search for the other commands.

What is Ctrl Shift L in VS Code?

You can add additional cursors to all occurrences of the current selection with Ctrl+Shift+L. Note: You can also change the modifier to Ctrl/Cmd for applying multiple cursors with the editor.


1 Answers

You can do it by pressing CTRL+SHIFT+E.

It will focus on the explorer sidebar, then you can navigate through the keyboard arrows.

like image 85
fabriciorissetto Avatar answered Sep 16 '22 13:09

fabriciorissetto