Idea Bookmarks
A Visual Studio Code extension that allows you to set bookmarks with numeric labels (0-9), just like in IntelliJ IDEA.
Features
- 🎯 Set bookmarks with numbers 0-9 in any files
- 🔄 Toggle bookmarks (set/remove) using Ctrl+Shift+[0-9]
- ⚡ Quick navigation to bookmarks using Ctrl+[0-9]
- 📝 Visual indicators in editor gutter
- 💾 Bookmarks persist between sessions
- 📋 List all bookmarks
Usage
Setting a Bookmark
- Place your cursor on the desired line
- Press
Ctrl+Shift+[0-9] to set a bookmark with the corresponding number
- The bookmark will be marked in the gutter with a blue icon showing the number
Navigating to a Bookmark
- Press
Ctrl+[0-9] to jump to the bookmark with the corresponding number
- Use the
List All Bookmarks command to view all bookmarks
Removing a Bookmark
- Press
Ctrl+Shift+[0-9] on an already set bookmark to remove it
Key Bindings
| Action |
Key Binding |
| Toggle Bookmark 0-9 |
Ctrl+Shift+[0-9] |
| Go to Bookmark 0-9 |
Ctrl+[0-9] |
Commands
The extension provides the following commands (available via Command Palette Ctrl+Shift+P):
Idea Bookmarks: Toggle Bookmark 0-9 - Set/remove bookmark
Idea Bookmarks: Go to Bookmark 0-9 - Navigate to bookmark
Idea Bookmarks: List All Bookmarks - Show list of all bookmarks
Development
Requirements
Install Dependencies
yarn install
Compile
yarn compile
Run in Development Mode
- Open the project in VS Code
- Press
F5 to launch Extension Development Host
- The extension will be active in the new VS Code window
Build for Publishing
yarn global add vsce
vsce package
Project Structure
.
├── src/
│ └── extension.ts # Main extension code
├── package.json # Extension configuration
├── tsconfig.json # TypeScript configuration
└── README.md # This file
License
MIT
| |