Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Inline BookmarksNew to Visual Studio Code? Get it now.

Inline Bookmarks

tintinweb

|
10,059 installs
| (6) | Free
Customizable inline Bookmarks
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

get in touch with Consensys Diligence
[ 🌐 📩 🔥 ]

Inline Bookmarks

inline_bookmarks_icon

Code navigation for inline bookmarks made easy.

  • Specify words inside your documents that are highlighted as bookmarks in the IDE.
  • Easily navigate to bookmarks from the Inline Bookmarks View added to the Explorer Panel.

Other extensions allow you to set bookmarks with some clicks in the IDE. With Inline Bookmarks you specify custom trigger words inside your documents that are automatically turned into VSCode Bookmarks. They will show up with a customizable gutter icon next to the code lines and are highlighted within the code. Decorations can be customized. An Inline Bookmarks View in the Explorer Panel helps you keep track of all your bookmarks. Navigating to the bookmark location is as easy as clicking on an item in the view.

The extension can be used to keep track of development notes and todo's, for document review, as well as log analysis and auditing purposes. Since bookmarks are stored with your documents you can easily share your notes and bookmarks with others.

Tour

inline_bookmarks_icon

vscode-inline-bookmarks-2

Customizable Inline Bookmarks

  • the following bookmark styles are provided by default: red, green, blue, purple

    inline_bookmarks_icon

Note: Additional custom styles can be added in the extension settings. See Expert options.

  • the following default trigger words/tags are configured by default:
    • @todo - (blue) General ToDo remark.
    • @note - (blue) General remark.
    • @remind - (blue) General remark.
    • @follow-up - (blue) General remark.
    • @audit - (red) General bookmark for potential issues.
    • @audit-info - (blue) General bookmark for information to be noted for later use.
    • @audit-ok - (green) Add a note that a specific line is not an issue even though it might look like.
    • @audit-issue - (purple) Reference a code location an issue was filed for.

Note: Words can be fully customized in: code → preferences → Extensions: Inline Bookmarks. Note: Keyboard shortcuts can be assigned in: code → preferences → keyboard shortcuts.

inline_bookmarks_icon

Filterable Bookmarks Finder

command: inlineBookmarks.showSelectBookmark

inline_bookmarks_icon

Bookmarks View

  • click on a bookmark to jump to its location
  • click refresh to re-scan loaded files for changes
  • toggle to only show bookmarks for visible editors
  • the bookmarks view will follow your cursor location in the editor. the follow mode can be changed with the configuration option inline-bookmarks.view.followMode.
  • jump to next/previous bookmark with commands inlineBookmarks.jumpToNext, inlineBookmarks.jumpToPrevious (assign your own keyboard shortcut in vscode preferences)
  • apply custom filter to bookmarks view with command inlineBookmarks.setTreeViewFilterWords.
    • empty list unsets filter
    • takes space- or semicolon-delimited list of regular expressions applied on the items label.
    • affects jumpToNext, jumpToPrevious

Buttons (left to right):

  • Jump to previous bookmark.
  • Jump to next bookmark.
  • Filter bookmark view: the prompt accepts regular expressions. keep empty to disable filtering.
  • Toggle: show bookmark for visible editors only.
  • Quick Refresh: refreshes the bookmark from the internal cache.
  • Scan Workspace for Bookmarks: scans all documents in the workspace for bookmark tags
inline_bookmarks_icon

Expert

  • reset the internal bookmarks state: inlineBookmarks.debug.state.reset
    • bookmarks view is populated when files containing bookmarks are openend in the editor
  • go to the extension settings: code → preferences → Extensions: Inline Bookmarks
  • Exceptions
    • configure file-extensions to be exempt from decoration
    • configure temporary overrides for trigger words to be exempt from decoration (matches begin of word)
  • Custom Styles
    • be aware that existing styles can be overridden
    • The gutterIconPath is not customizable right now. You can only use the images provided with the extension right now: images/bookmark-{red,green,blue,purple}.svg. See example below.
  • Custom word mappings
    • You can assign multiple regex trigger words to a decoration style. See example below.

Example style definition: (all vscode style properties are allowed)

"inline-bookmarks.expert.custom.styles": {
    "default": {
        "gutterIconPath": "images/bookmark-blue.svg",
        "overviewRulerColor": "rgba(21, 126, 251, 0.7)",
        "light": {
            "fontWeight": "bold"
        },
        "dark": {
            "color": "Chocolate"
        }
    },
    "red": {
        "gutterIconPath": "images/bookmark-red.svg",
        "light": {
            "fontWeight": "bold"
        },
        "dark": {
            "color": "Chocolate"
        }
    },
    "blue": {
        "gutterIconPath": "images/bookmark-blue.svg",
        "light": {
            "fontWeight": "bold"
        },
        "dark": {
            "color": "Chocolate"
        }
    },
    "green": {
        "gutterIconPath": "images/bookmark-green.svg",
        "light": {
            "fontWeight": "bold"
        },
        "dark": {
            "color": "Chocolate"
        }
    },
    "purple": {
        "gutterIconPath": "images/bookmark-purple.svg",
        "light": {
            "fontWeight": "bold"
        },
        "dark": {
            "color": "Chocolate"
        }
    }
}

Example word mapping: (all vscode style properties are allowed)

"inline-bookmarks.expert.custom.words.mapping": {
    "blue": ["@audit\\-info[ \\t\\n]"],
    "purple": ["@audit\\-issue[ \t\\n]"],
    "green": ["@audit\\-ok[ \\t\\n]"],
    "red": ["@audit[ \\t\\n]"]
}
  • Note: gutter icons are hardcoded at this time.

Release Notes

see CHANGELOG


  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft