What's new in Bookmarks 11.4
- Adds an all-new Side Bar
- Adds Label suggestion based on selection
- Adds Multi cursor support
- Adds Column Position and Label support
- Adds Localization support
- Adds
Collapse Allcommand in the Side Bar - Adds Hover Buttons for files and Bookmarks in the Side Bar
- Adds workbench.colorCustomizations support
Support
Bookmarks is an extension created for Visual Studio Code. If you find it useful, please consider supporting it.
|
|
|
Sponsors
Eliminate context switching and costly distractions. Create and merge PRs and perform code reviews from inside your IDE while using jump-to-definition, your keybindings, and other IDE favorites.
Learn more
Bookmarks
It helps you to navigate in your code, moving between important positions easily and quickly. No more need to search for code. It also supports a set of selection commands, which allows you to select bookmarked lines and regions between bookmarked lines. It's really useful for log file analysis.
Here are some of the features that Bookmarks provides:
- Mark/unmark positions in your code
- Mark positions in your code and give it name
- Jump forward and backward between bookmarks
- Icons in gutter and overview ruler
- See a list of all Bookmarks in one file
- See a list of all Bookmarks in your project
- A dedicated Side Bar
- Select lines with bookmarks
- Select regions between bookmarks
Features
Available commands
Bookmarks: ToggleMark/unmark positions with bookmarksBookmarks: Toggle LabeledMark labeled bookmarksBookmarks: Jump to NextMove the cursor forward, to the bookmark belowBookmarks: Jump to PreviousMove the cursor backward, to the bookmark aboveBookmarks: ListList all bookmarks in the current fileBookmarks: List from All FilesList all bookmarks from all filesBookmarks: Clearremove all bookmarks in the current fileBookmarks: Clear from All Filesremove all bookmarks from all filesBookmarks (Selection): Select LinesSelect all lines that contains bookmarksBookmarks (Selection): Expand Selection to NextExpand the selected text to the next bookmarkBookmarks (Selection): Expand Selection to PreviousExpand the selected text to the previous bookmarkBookmarks (Selection): Shrink SelectionShrink the select text to the Previous/Next bookmark
Manage your bookmarks
Toggle / Toggle Labeled
You can easily Mark/Unmark bookmarks on any position. You can even define Labels for each bookmark.
Navigation
Jump to Next / Previous
Quicky move between bookmarks backward and forward, even if located outside the active file.
List / List from All Files
List all bookmarks from the current file/project and easily navigate to any of them. It shows a line preview and temporarily scroll to its position.
- Bookmarks from the active file only shows the line number and its contents
- Bookmarks from other files in the project also shows the relative path and filename
- Bookmarks from files outside the project are denoted with

Selection
You can use Bookmarks to easily select lines or text blocks. Simply toggle bookmarks in any position of interest and use some of the Selection commands available.
Select Lines
Select all bookmarked lines. Specially useful while working with log files.
Expand Selection to the Next/Previous Bookmark or Shrink the Selection
Manipulate the selection of lines between bookmarks, up and down.
Available Settings
- Allow navigation through all files that contains bookmarks (
falseby default)
"bookmarks.navigateThroughAllFiles": true- Allow navigation to wrap around at the first and last bookmarks in scope (current file or all files) (
trueby default)
"bookmarks.wrapNavigation": true- Bookmarks are always saved between sessions, and you can decide if it should be saved in the Project, so you can add it to your Git/SVN repo and have it in all your machines (
falseby default)
"bookmarks.saveBookmarksInProject": true- Path to another image to be shown as Bookmark (16x16 px)
"bookmarks.gutterIconPath": "c:\\temp\\othericon.png"- Choose the background color to use on a bookmarked line
"bookmarks.backgroundLineColor"Deprecated in 10.7: Use
workbench.colorCustomizationsinstead. More info in Available Colors
- Allow bookmarks commands, (Toggle, Jump to Next/Previous), to be displayed on the editor contex menu (
trueby default)
"bookmarks.showCommandsInContextMenu": true- Use a workaround for formatters, like Prettier, which does not notify on document changes and messes Bookmark's Sticky behavior (
falseby default)
"bookmarks.useWorkaroundForFormatters": trueThis workaround should be temporary, until a proper research and suggested APIs are available
- Choose if the Side Bar should start expanded (
falseby default)
"bookmarks.sideBar.expanded": true-
Choose how multi cursor handles already bookmarked lines (
allLinesAtOnceby default)allLinesAtOnce: Creates bookmarks in all selected lines at once, if at least one of the lines don't have a bookmarkeachLineIndependently: Literally toggles a bookmark in each line, instead of making all lines equals
"bookmarks.multicursor.toggleMode": "eachLineIndependently"-
Choose how labels are suggested when creating bookmarks (
dontUseby default)dontUse: Don't use the selection (original behavior)useWhenSelected: Use the selected text (if available) directly, no confirmation requiredsuggestWhenSelected: Suggests the selected text (if available). You still need to confirm.suggestWhenSelectedOrLineWhenNoSelected: Suggests the selected text (if available) or the entire line (when has no selection). You still need to confirm
"bookmarks.label.suggestion": "useWhenSelected"Available Colors
- Choose the background color to use on a bookmarked line
"workbench.colorCustomizations": {
"bookmarks.lineBackground": "#157EFB22"
}- Choose the border color to use on a bookmarked line
"workbench.colorCustomizations": {
"bookmarks.lineBorder": "#FF0000"
}- Choose marker color to use in the overview ruler
"workbench.colorCustomizations": {
"bookmarks.overviewRuler": "#157EFB88"
}Side Bar
The Bookmarks extension has its own Side Bar, giving you more free space in your Explorer view. You will have a few extra commands available:
- Jump to Bookmark
- Edit Label
- Remove Bookmark
- Clear Bookmark's file
Project and Session Based
The bookmarks are saved per session for the project that you are using. You don't have to worry about closing files in Working Files. When you reopen the file, the bookmarks are restored.
It also works even if you only preview a file (simple click in TreeView). You can put bookmarks in any file and when you preview it again, the bookmarks will be there.
License
MIT © Alessandro Fragnani

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.









