JJJohn
JJJohn

Reputation: 1079

Is it possible to open multiple VSCode windows at the same time?

With PyCharm, I can have multiple windows for projects at the same time.

enter image description here

Is it possible to do that with VSCode?

Upvotes: 1

Views: 3545

Answers (1)

zedfoxus
zedfoxus

Reputation: 37039

I am using this build:

Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:33:47.663Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.4.0

If you want to open 2 windows - one with project 1 and the other with project 2, you could do this:

Open Visual Studio Code > File > New Window (or press Shift+Command+N)

Open VS Code

That opens 2 different instances in their respective windows.

Another window of VS Code

Command line

Assuming code, the executable, is in your PATH, you could open multiple instances in their respective windows.

Let's say you had 2 directories: project1 and project2 like so:

~ % ls -h project*
project1:
test.py

project2:
hello.php

You can do this:

cd project1
code .

# Let VS Code come up

cd ../project2
code .

# Another instance of VS Code will come up

Opening VSCode from command line

Upvotes: 6

Related Questions