Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open multiple Projects/Folders in Visual Studio Code

How do I open multiple projects/folders in a single Visual Studio Code instance, and open multiple files in single view? Does it has any option for future change request?

like image 519
Manish Sapkal Avatar asked Oct 05 '22 15:10

Manish Sapkal


People also ask

How do I open multiple projects in Visual Studio?

To open a second instance of the integrated development environment (IDE), right-click on the Visual Studio icon in your dock or Applications folder, and select New Instance.

How do I open all folders in VS Code?

To unfold all the folders in your code: Enter command >unfold all and hit enter.

How do I open multiple files in Visual Studio Code?

Launch VS Code and press the “Ctrl” and “P” keys simultaneously to search for a file to open in the current project. Type in the file name. To open the new file in a temporary tab, click on it once. To open the new file in a separate window that you can choose to close manually, double-click it.


2 Answers

Not sure why the simplest solution is not mentioned. You can simply do File>New Window and open the other project in the new window.

like image 283
Ryan Pergent Avatar answered Oct 23 '22 07:10

Ryan Pergent


Update

This is now available out of the box as of October 2017. From the blog post:

This was our #1 feature request - it's been a while coming but it's here now.

The complete documentation is here.

You can work with multiple project folders in Visual Studio Code with multi-root workspaces. This can be very helpful when you are working on several related projects at one time. For example, you might have a repository with a product's documentation which you like to keep current when you update the product source code.


Original answer

Currently the Insider channel of VSCode gives us this out of the box.

Multi root workspace in vscode

Read more from the blog post.

like image 208
Jay Wick Avatar answered Oct 23 '22 07:10

Jay Wick