Branch Context
Branch Context saves and restores your open tabs, cursor positions and notes for every git branch.
Features
- When you switch git branches, the tabs of that branch come back automatically.
- Cursor positions are remembered for every file.
- Each branch has its own notes file ("where I stopped / next step").
- A sidebar view and a status bar item show the saved context of the current branch.
How to use
- Open a folder that is a git repository.
- Open some files and work as usual. The extension saves your tabs automatically.
- Switch branches. Your saved tabs for that branch are restored.
- Click the
ctx item in the status bar to save, restore, reset or open notes.
Settings
| Setting |
Default |
Description |
branchContext.autoRestore |
true |
Restore saved tabs automatically when you switch branches. |
Notes
- Unsaved files are never closed during a restore.
- Files that do not exist on the target branch are skipped.
| |