Save and restore open tabs automatically per Git branch. Switch branches without losing your editor context.
Why?
Every time you switch Git branches you lose your open files. When you switch back you have to remember which tabs you had open, hunt them down, and reopen them one by one. Branch Tabs Manager handles this automatically — save your workspace state per branch and restore it instantly.
Features
Automatic
Auto-saves your open tabs when they change (debounced)
Auto-restores tabs when you switch back to a branch
Detects branch changes through the VS Code Git extension API
Status bar
Shows current branch name and saved tab count at a glance
Click to open the quick menu with all actions
Tooltip shows open vs. saved tab counts
Manual commands
Save tabs for the current branch
Restore tabs for the current branch
Preview saved tabs without opening them
Load tabs from another branch (without switching)
Clear all saved data for this workspace
Configurable
| Setting | Default | Description |
|---------|---------|-------------|
| branchTabs.autoRestore | true | Restore tabs automatically on branch switch |
| branchTabs.autoSave | true | Save tabs automatically when they change |
| branchTabs.showNotifications | true | Show notifications for save/restore actions |
| branchTabs.autoSaveDelay | 2000 | Debounce delay in ms before auto-saving (500–10000) |