
VSCode doesn't save your open tabs and positions when you switch Git branches. I made a fix. (Open Source)
Every time I switched Git branches in VS Code, I'd lose track of what I was working on. Tabs stayed the same, cursor positions gone, had to manually reopen everything and scroll back to where I was. Switching between main and a feature branch multiple times a day made this a constant annoyance. So I built Branch Workspaces, an Open Source VSCode Extension. It watches .git/HEAD directly (not VS Code's git API), so it works whether you switch branches from the terminal, VS Code's UI, or any other git tool. When you switch, it saves your current state and restores whatever you had open on the target branch. It saves the open editor tabs, editor splits and layout, cursor positions and selections, scroll positions, pinned tab state, and which editor was focused. Everything works out of the box, no config needed. Everything is stored locally in VS Code's Works out of the box, no config needed. Everything is stored locally in VS Code's workspace storage, nothing touches your repo. Branch Work
Continue reading on Dev.to
Opens in a new tab


