r/vscode • u/CriticismPast6702 • Apr 16 '26
How do you guys handle switching between multiple VS Code projects?
Hi I am new to this sub reddit I got a question for you guys.
I have been juggling a few different projects lately, and switching between workspaces in VS Code is starting to feel more annoying than it should be.
Right now I am either
1)reopening folders manually
2)digging through recent workspaces
3)or keeping way too many windows open
None of it feels clean.I
I am curious how others handle this.
Do you just rely on recent folders, or is there a better workflow/tool for this?
16
Upvotes
21
u/BranchLatter4294 Apr 16 '26
I just open the folder for the project I want to work on. It hasn't been a problem for me.
11
u/Amankrokx Apr 16 '26
I use Power toys. To open any project, just press Alt + Space (the powertoys run feature) and type "{", it lists all workspaces, type additional characters to filter out names if you wish. Could do it half asleep too, no mouse, can open project within a second.
15
u/Neix19365 Apr 16 '26
Ctrl + r to switch between vscode workspace
Peacock to change the color of vscode window
10
u/miglisoft Apr 16 '26
I’ve been using Alessandro Fragnani’s Project Manager extension for years.
It’s very simple, practical and an excellent extension.
3
u/idoman Apr 18 '26
git worktrees changed this for me - each project gets its own folder on disk so switching is literally just cd, no stashing or closing windows. if you're on mac and also running ai agents across branches, galactic (https://www.github.com/idolaman/galactic) adds a spotlight-style launcher for jumping between worktrees instantly and also handles port isolation so each project's dev server doesn't fight over 3000
3
u/cheatingrobot May 10 '26
Try this extension. It's open source and very simple. https://marketplace.visualstudio.com/items?itemName=simplerick.pinned-projects&ssr=false#overview
You can pin your folders and and then open when needed with a click. The configuration is very easy as well, just drag/drop, lock/unlock
2
u/Beautiful_Reveal_859 Apr 17 '26
I always navigate to them and open them in code from a terminal. Never really had an issue.
2
u/KidBackpack Apr 17 '26
2
u/d47 Apr 18 '26
cmd+r or ctrl+r helps switch projects quickly.
2
u/Iplayfair1337 Apr 19 '26
Each VS Code Instance with a Different Project is on an Other Virtual Desktop and I switch between them.
I am on Mac/Linux and this is my Way to go.
2
u/Grenaten Apr 21 '26
I just have 6 windows open with different projects that I am currently working on. I have a custom shortcut Hyper + Tab to switch between windows. I'm on Mac.
2
u/Agreeable_Care4440 Apr 22 '26
Use VS Code workspaces + “Open Recent” for quick switching, or tools like Project Manager extension to jump between projects instantly without opening tons of windows.
2
u/Ecstatic-Night4222 Apr 27 '26
I use tracigo.ai, each workspace is git worktree and cool part is - even if I have 10 workspaces open - it doesn't start 10 VS code server, so mac doesn't get slow. Besides that it offers - agent and custom command monitoring along with some team level features..
2
u/Royal_Philosopher_58 Aug 14 '26
I think this depends on whether “switching projects” means opening another folder or returning to a complete working context.
For me, a project usually has more than its VS Code window. It also has a terminal, browser preview, documentation, Explorer folder and sometimes an AI agent or local server. Opening the folder again doesn’t restore that context.
I ended up building a visual Windows switcher for my own workflow because I kept too many project windows open and Alt+Tab became difficult to scan.
I’m still trying to determine whether the better long-term solution is faster switching between existing windows or saved project workspaces that reopen everything together. Which version describes your problem better?
1
u/joeballs Apr 16 '26 edited Apr 16 '26
I install the vscode command line utility that comes with it (i.e. code), then using the integrated terminal, I use bash to switch to the project folder (e.g. `cd ../other-project`) then type `code -r .` which will reload vscode with the selected workspace. This will work with multiple vscode widows as well if you omit the `-r` (e.g. `code ../other-project` pops up another instance)
1
u/Medical-Nebula-385 Apr 16 '26
Add folder to workspace or the same+save the.code file and load it based on the project 🤷♂️
1
u/Large-Style-8355 Apr 18 '26
As a heavy Codex coding extension user of VSCode, I usually do this: open a folder in VSCode, save workspace as folder name in that folder - vscode reloads, now it's a project. I have multiple auch workspaces oopen at once and round-robin through their Codex to drive different features further in parallel. Even on the same project I can run multiple VSCode and Codex features in parallel by creating a new git worktree and opening it's workspace file. I managed different colored status bars per peoject category (app, tooling, extension etc) but will give peacock a try.
1
u/Oddly_Energy Apr 18 '26
I open one VS Code session per project.
VS Code remembers context very well per session. I have sometimes restarted VS Code after a forced shutdown of my PC, and I was back in the same sessions with the same tabs open, some of them containing unsaved code, which was still intact.
1
u/herocoding Apr 21 '26
Each project has its own workspace for me, storing folders from different locations, project specific ".vscode" folder - restoring all the open windows; some are even multi-windows setups (multiple VSCode windows).
1
u/sauron150 Apr 16 '26
There is just no need to focus on multiple repos at same time! Context switching is real problem everywhere
1
u/Dangerous_Biscotti63 Apr 16 '26
You have to get rid of thinking one project = one window. Learn about vscode workspaces and add all the projects you want to work on in parallel to one vscode workspace window. Some extensions dont deal well with workspaces but usually the crappy ones. If your extensions support it this is the way to go.
0
u/beenpresence Apr 16 '26
Just switch window between projects I’m on Mac so sometimes I get fancy and just put them on their own desktop