How to Open Multiple Instances of Visual Studio Code?

Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux, and OS X. Visual Studio Code is sponsored by Microsoft Open Technologies, Inc., which provides funding and staffing to the project. The software is free and available under the MIT License.

With many releases, VS Code has become most of the developers’ favorite editors. it was one of the fast-growing open-source projects on GitHub in 2017.

In addition to being a well-designed cross-platform text editor for developers, VS Code includes tools that are specifically developed for programmers: integrated Git support, built-in version control systems, and debuggers as well as a task running and command line access.

Do you have one of those days when you need to be on a different project but can’t figure out how to open another instance of Visual Studio Code? If so, this blog post will introduce a simple way to do so.

2 Ways to Open Multiple Instances of Visual Studio Code

In Terminal

Visual Studio Code has a powerful command line interface built-in that lets you customize your workflow. We can open a new instance of VS Code with the -n parameter. If you type code --help in the terminal window, you will see this information about -n or –new-window options.

code -n

This command will open a new instance of VS Code.

In Shortcut

This method is simple and it helps open a new window every time you click the shortcut to the Visual Studio Code application.

  • Right-click on VS Code software’s shortcut then click Properties at the bottom of the contextual menu.
  • Access the Shortcut tab.
  • Add -n to the end of the software’s location. In my case, it is "C:\Program Files\Microsoft VS Code\Code.exe" -n.

After this, clicking on the shortcut won’t open the previous project. It will open a new VS Code instance with a welcome screen.

Leave a Comment

Your email address will not be published. Required fields are marked *


Scroll to Top