How to close an opened folder in Visual Studio Code?

Solution 1:

The command to close the currently opened folder can be found from File -> Close Folder.

You can also use the shortcut:

Ctrl+K F

And on a Mac:

+k f

Solution 2:

With the 0.3.0 update we added a new command to close a folder. You can find it under the File menu.