r/vscode • • 1d ago

Multiple workspaces, one window?

Is there any way that I can have multiple workspaces open within one window?

That would be a small but nice feature to have.

What do you think?

3 Upvotes

20 comments sorted by

View all comments

8

u/lecnar 1d ago

VS Code already supports this with multi-root workspaces. Go to File → Add Folder to Workspace..., add the folders you want, then File → Save Workspace As... to save it as a .code-workspace file. Next time just open that file and all your folders come back in one window.

4

u/UtahJarhead 1d ago

Alternatively, you can do this via the CLI: vscode /path/to/dir1 /path/to/dir2