Bookmarks for VS CodeThis extension helps you efficiently manage and track files or specific file locations within your projects, allowing you to leave breadcrumbs as you debug or navigate your code, or when saving all opened editors, it helps you to quickly switch between tasks.
BookmarkA bookmark is a reference to a specific location within a document. Bookmarks are grouped as A bookmark's identity is tied to its URL, which normally includes a one-based line number fragment (e.g., Bookmark FoldersA folder is a container for bookmarks. As such, they are not related to the associated file-system structure. The only constraint imposed by folders is that a given bookmark must be unique within it. For example, you can add a bookmark to Bookmarks ViewThe Bookmarks View is the main UI component for this extension. Bookmarks are split into two categories:
You can change the display mode of the tree:
Adding a BookmarkCommandsThere are two commands available to add a bookmark: Bookmarks: Bookmark Editor (Global) and Bookmarks: Bookmark Editor (Workspace). Both work on the currently active editor and add a bookmark under the appropriate category. When a bookmark is created via any of these commands, the current line information is captured. Programmatic accessThe following commands are available for other extensions to use: Line information can be added by appending a fragment to the URI in the format: Drag and DropEditors can be dragged onto the tree, and they will be bookmarked. Additionally, it is also possible to drag items between categories to move them around. When a bookmark is created this way, the current line information is not captured. TreeThere is a Removing One or All BookmarksCommandsThere are two commands available: Bookmarks: Remove All (Global) and Bookmarks: Remove All (Workspace). Programmatic accessThe following commands are available for other extensions to use:
TreeThere is an Bookmark PropertiesDisplay NameAssigning a custom display name to a bookmark affects how it is presented in the UI. This can be used to provide a meaningful name, such as "Bug Location". Context MenuIn the Display Name context menu for a given bookmark, use:
Line NumberUpdating the line number helps keeping bookmarks in-sync with changes to their targets or to fix an incorrect value. The benefit here will improve as bookmarks evolve and carry more metadata so editing this value is easier than just recreating the bookmark. Context MenuIn the Line Number context menu for a given bookmark, use:
NotesAttach text notes to a bookmark for reference. Text is displayed on the the bookmark's tooltip. Context MenuIn the Notes context menu for a given bookmark, use:
NavigationCommandsThere are two commands, Bookmarks: Go to Next in Current Editor and Bookmarks: Go to Previous in Current Editor, that can be used to jump between bookmarks set in the current editor. Programmatic accessThe following commands are available for other extensions to use: VisualizationBookmarks are expected to be rendered as markers on the corresponding editor gutter. This is support via the Bookmarks: Toggle In-Editor Markers command but it is disabled by default due to [VSCode #5923](https://github.com/Microsoft/vscode/issues/5923) which causes these markers to cover the breakpoint ones (unacceptable experience). You can also use the Hide In-Editor Markers and Show In-Editor Markers actions in the Bookmarks view menu.
You can add breakpoints to covered lines via the gutter's context menu when markers are visible. |