Rob
Rob

Reputation: 1426

How to get VSCode to open in current workspace?

I'm using VSCode on linux. I have multiple linux workspaces.

When I open a new file in VSCode in a new workspace, it opens a new tab in VSCode in the original workspace rather than a new instance of VSCode in the current workspace. That's really annoying behaviour and I'd like to change it so that when I'm in a workspace, any new attempt to open something in VSCode will appear in the current workspace. Is that possible?

For clarity:

I have a file open in WorkSpace 1 in VSCode.

I switch to WorkSpace 2 and want to open a different existing file.

This opens back in WorkSpace 1 in a new tab of VSCode but I want it to open in a new instance of VSCode in WorkSpace 2.

Basically I want the different WorkSpace isolated from each other as they are for different bits of work.

Upvotes: 3

Views: 786

Answers (1)

rioV8
rioV8

Reputation: 28838

Have a look at the Command Line Option -n or --new-window

Upvotes: 2

Related Questions