Branch-aware bookmarks for VS Code.
Branch Bookmarks lets you pin lines while working across Git branches, then jump back quickly from the sidebar or quick pick.
- Branch-scoped bookmarks
- Toggle bookmark at cursor line
- Sidebar view in Explorer (
Bookmarks) - Quick pick bookmark list
- Gutter icon decoration
- Automatic line tracking on edits
- Bookmark cleanup for deleted/out-of-range files/lines
- File rename/move tracking
- Sidebar (
Bookmarksview): shows bookmarks from the current branch only, groups by file, sorts files alphabetically, and sorts bookmarks in each file by line number (ascending). - Quick Pick (
Bookmark: List Bookmarks): shows bookmarks from the current branch sorted by recently added first.
| Action | Shortcut | Command ID |
|---|---|---|
| Toggle Bookmark | F3 |
bookmark.toggle |
| List Bookmarks (Quick Pick) | Shift+F3 |
bookmark.listQuickPick |
| Focus Bookmarks Sidebar | Cmd+4 (macOS), Ctrl+4 (Windows/Linux) |
bookmark.focusSidebar |
| Command Palette Label | Command ID |
|---|---|
Bookmark: Toggle Bookmark |
bookmark.toggle |
Bookmark: List Bookmarks (Quick Pick) |
bookmark.listQuickPick |
Bookmark: Focus Bookmarks Sidebar |
bookmark.focusSidebar |
Bookmark: Clear All Bookmarks |
bookmark.clearAll |
Bookmark: Refresh Bookmarks |
bookmark.refresh |
| Setting | Description | Default |
|---|---|---|
bookmark.gutterIconColor |
Color for bookmark gutter icon | #007ACC |
bookmark.branchTransitionDelayMs |
Suspend duration for line tracking after branch change (ms) | 500 |
npm install
npm run compile
npm testnpm run install:localThis script packages a VSIX and installs it into local VS Code.
MIT. See LICENSE.