Branched Tabs is a Visual Studio extension that automatically saves and restores your open documents per Git branch. Seamlessly switch branches and get back exactly to where you left off!
- 🔀 Automatically save open tabs per Git branch
- 📂 Restore tabs when switching branches
- ⚙️ Configurable behavior:
- Restore only
- Replace and keep unsaved
- Replace all and save unsaved
- ✅ Lightweight and works silently in the background
- 🔧 Optional: Disable or customize behavior via settings
-
Open the
.vsix
file from Releases. -
Restart Visual Studio.
Go to: Tools > Options > Branched Tabs
You’ll find options to:
- Enable/disable the extension
- Choose tab restore behavior:
- Restore only
- Replace and keep unsaved
- Replace all and save unsaved
- On solution open or Git branch switch:
- Previously open tabs for the current branch are restored
- On solution close or branch switch:
- Current open files are saved to
.vs/BranchTabs.json
- Current open files are saved to
Tabs are restored based on file paths. Unsaved files can optionally be saved automatically.
Want to improve or extend the extension? Contributions are welcome!
- Fork this repo
- Clone and open the
.sln
file in Visual Studio - Build using the Experimental Instance of Visual Studio
- Submit a PR!
This project is licensed under the MIT License.
For issues or suggestions, feel free to open an issue or reach out via GitHub.