Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Branch Context (KabiRajBhatt)New to Visual Studio Code? Get it now.
Branch Context (KabiRajBhatt)

Branch Context (KabiRajBhatt)

Kabi Raj Bhatt

|
1 install
| (0) | Free
Saves and restores your open tabs, cursor positions and notes for each git branch.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  1. Open a folder that is a git repository.
  2. Open some files and work as usual. The extension saves your tabs automatically.
  3. Switch branches. Your saved tabs for that branch are restored.
  4. 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.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft