Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Instantly open files when navigating the file explorer with arrow keys in VScode

Currently, I navigate the file tree in VScode with arrow keys and have to press Cmd + Down to display the file in the editor.

Is there any way to navigate through the file explorer in VScode AND instantly open the file upon focus/highlight without shortcut ? (similarly to how it works in sublime text)

like image 933
David Van Isacker Avatar asked Oct 20 '17 16:10

David Van Isacker


People also ask

How do I quick open files in VS Code?

Quick file navigation# Tip: You can open any file by its name when you type Ctrl+P (Quick Open).

How do I right click open folder with Visual Studio code?

Often, we need to open folder in Visual Studio Code in order to run a project. So it's easy if there is an option to open any folder directly in Visual Studio Code from Windows Explorer. We can do it by changing "Right Click Context Menu" registry.

How do I navigate folders in VS Code?

You can do it by pressing CTRL + SHIFT + E . It will focus on the explorer sidebar, then you can navigate through the keyboard arrows.


1 Answers

As written in this github issue: (Open File Preview when using Keyboard navigation in Explorer for better accessibility. #55816), as of (at least) the 28th of august 2019 it is possible to

preview files, by selecting them in the explorer with Up/Down and pressing space

One can easily switch to the file-explorer with shift+cmd+E. This is not as simple as just the arrow-keys, but still way more convenient than what is described in the question.

like image 68
gr4nt3d Avatar answered Sep 20 '22 06:09

gr4nt3d