Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to jump to file explorer in VS Code?

Using the VIM extension for VS Code is there a key command to jump to the explorer pane and then back to the work window?

I cannot find anything in the docs.

I'm hoping there is something like my Control+N binding for NERDTree which lets me open the file viewer, pick a file and then close it.

like image 297
Josh R Avatar asked Apr 21 '19 00:04

Josh R


People also ask

How do you jump to a file in VS code?

Quick file navigation# VS Code provides two powerful commands to navigate in and across files with easy-to-use key bindings. 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.

What does Ctrl d do in VS code?

Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.

How do you jump to a specific line in Vscode?

The Go To Line dialog box lets you move to a specific line in the active document. To access this dialog box, open a document for editing, and then select Edit > Go To > Go To Line or press Ctrl+G.


1 Answers

I am not familiar with NERDTree, but I think Ctrl+Shift+e does what you are asking in vs code. Alternatively Ctrl+p may be an alternative? You could look at linux keyboard shortcut for more reference.

The link is also available in Help > Keyboard Shortcut Reference

EDIT: I'm adding the equivalent shortcut for Mac OS since it's different layout. However, I don't use Mac OS.. So I add this without being able to confirm :

Shift+Command+E Mac OS Keyboard shortcut for VS Code

Windows keyboard shortcuts are very similar to linux ones. So, I'll just include the link to windows shortcuts doc here. Windows Keyboard shortcut for VS Code

like image 110
Santiago Avatar answered Oct 01 '22 20:10

Santiago