Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there an 'Open Folder...' keyboard shortcut in VS Code?

I don't see a keyboard shortcut for "Open Folder..." listed on the documentation page below, and after searching elsewhere for a while I didn't see anything else.

https://code.visualstudio.com/docs/customization/keybindings

I thought I would ask here before putting an issue on GitHub about it. (Also there doesn't seem to be a open / closed issue about this anywhere on the GitHub repo.)

https://github.com/Microsoft/vscode/issues

like image 869
Ryan Spletzer Avatar asked Feb 11 '17 20:02

Ryan Spletzer


People also ask

How do I right click and open a folder with VS Code?

You can now navigate to a folder through Windows Explorer, right click on either the folder icon or in the folder itself, and you will see an option to “Open Folder as VS Code Project”. As a bonus, you can right click on individual files and “Edit with VS Code” as well.

How do I open a folder in VS Code in Windows?

On the Visual Studio menu bar, choose File > Open > Folder, and then browse to the code location. On the context (right-click) menu of a folder containing code, choose the Open in Visual Studio command. Choose the Open Folder link on the start window.


1 Answers

There is indeed a shortcut for it, the command is workbench.action.files.openFolder, and the default keybinding is Ctrl+K,Ctrl+O.

It's easy to find in the list of shortcuts (File → Preferences → Keyboard Shortcuts) if you search for "folder" or "openFolder" in the Default Keybindings.

like image 76
Gama11 Avatar answered Oct 06 '22 03:10

Gama11