Diff Bookmarks for VS Code Version VS Code License A powerful VS Code extension that allows you to bookmark lines in your code, especially useful when working with diffs. The extension intelligently tracks your bookmarks even as you edit your files, ensuring your bookmarks stay with the content they mark. ✨ Features 📌 Toggle Bookmarks: Easily add or remove bookmarks on any line 🎯 Smart Line Tracking: Bookmarks follow your code as you edit, using content matching to stay with the right lines 🎨 Customizable Appearance: Configure bookmark colors, line highlighting, and scrollbar indicators 🧭 Easy Navigation: Jump between bookmarks with keyboard shortcuts 👁️ Visual Indicators: See bookmarks in: Gutter icons Line background highlighting Scrollbar markers Minimap (optional) 📊 Multi-file Support: Bookmarks are maintained per file 🚀 Lightweight: Minimal performance impact 📸 Screenshots Bookmark Example Bookmarks shown in the editor with custom colors Navigation Demo Navigating between bookmarks 🚀 Installation From VS Code Marketplace Open VS Code Press Ctrl+P / Cmd+P to open the Quick Open dialog Type ext install diff-bookmarks Click Install From VSIX Download the .vsix file from the releases page Open VS Code Press Ctrl+Shift+P / Cmd+Shift+P Type "Install from VSIX" Select the downloaded file 📖 Usage Basic Commands Command Description Default Keybinding Toggle Bookmark Add/remove bookmark at current line Ctrl+Alt+K (Windows/Linux) Cmd+Alt+K (Mac) Next Bookmark Jump to next bookmark Ctrl+Alt+N (Windows/Linux) Cmd+Alt+N (Mac) Previous Bookmark Jump to previous bookmark Ctrl+Alt+P (Windows/Linux) Cmd+Alt+P (Mac) Clear All Bookmarks Remove all bookmarks in current file No default binding How to Use Adding a Bookmark: Place your cursor on any line Press Ctrl+Alt+K (or Cmd+Alt+K on Mac) A bookmark icon will appear in the gutter Navigating Bookmarks: Use Ctrl+Alt+N to go to the next bookmark Use Ctrl+Alt+P to go to the previous bookmark Navigation wraps around (after the last bookmark, it goes to the first) Removing Bookmarks: Toggle off individual bookmarks with Ctrl+Alt+K on a bookmarked line Clear all bookmarks using the command palette (Ctrl+Shift+P → "Clear All Bookmarks") ⚙️ Configuration Customize the extension through VS Code settings: JSON Collapse { // Bookmark icon color in the gutter (hex format) "diffBookmarks.bookmarkColor": "#FF7800", // Background color of bookmarked lines "diffBookmarks.bookmarkLineColor": "rgba(255, 200, 0, 0.2)", // Color of bookmark indicators in the scrollbar "diffBookmarks.overviewRulerColor": "rgba(255, 120, 0, 0.7)", // Show bookmark indicators in the minimap "diffBookmarks.showInMinimap": true, } Configuration Examples High Contrast Theme: JSON { "diffBookmarks.bookmarkColor": "#00FF00", "diffBookmarks.bookmarkLineColor": "rgba(0, 255, 0, 0.3)", "diffBookmarks.overviewRulerColor": "rgba(0, 255, 0, 0.9)" } Subtle Style: JSON { "diffBookmarks.bookmarkColor": "#808080", "diffBookmarks.bookmarkLineColor": "rgba(128, 128, 128, 0.1)", "diffBookmarks.overviewRulerColor": "rgba(128, 128, 128, 0.5)" } 🎯 Use Cases Code Review: Mark important lines while reviewing PRs or diffs Learning: Mark important sections while studying new codebases Refactoring: Keep track of code that needs changes Navigation: Quick jumping between related code sections |