# vscode-bookmarks **Repository Path**: zanderzhang/vscode-bookmarks ## Basic Information - **Project Name**: vscode-bookmarks - **Description**: Bookmarks Extension for Visual Studio Code - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-02-01 - **Last Updated**: 2021-06-20 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README


Bookmarks Logo

# What's new in Bookmarks 10 * Adds an all-new Bookmarks **Side Bar** * Adds **Column Position** and **Label** support * Adds `Edit Label` command in the **Side Bar** * Adds **Localization** support * Adds `Jump to Next` and `Jump to Previous` commands to Context Menu * Adds **background color** for bookmarked lines ## Support **Bookmarks** is an extension created for **Visual Studio Code**. If you find it useful, please consider supporting it.
## Sponsors
Discuss, review, and share code with your team in VS Code. Links discussions about code to your code. Integrates w/ Slack, Jira, Trello, and Live Share.
Try it free
# 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. Since version 9 you can also define **Labels** for you bookmarks! 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: Toggle` Mark/unmark positions with bookmarks * `Bookmarks: Toggle Labeled` Mark labeled bookmarks * `Bookmarks: Jump to Next` Move the cursor forward, to the bookmark below * `Bookmarks: Jump to Previous` Move the cursor backward, to the bookmark above * `Bookmarks: List` List all bookmarks in the current file * `Bookmarks: List from All Files` List all bookmarks from all files * `Bookmarks: Clear` remove all bookmarks in the current file * `Bookmarks: Clear from All Files` remove all bookmarks from all files * `Bookmarks (Selection): Select Lines` Select all lines that contains bookmarks * `Bookmarks (Selection): Expand Selection to Next` Expand the selected text to the next bookmark * `Bookmarks (Selection): Expand Selection to Previous` Expand the selected text to the previous bookmark * `Bookmarks (Selection): Shrink Selection` Shrink the select text to the Previous/Next bookmark ## Manage your bookmarks ### Toggle You can easily Mark/Unmark bookmarks on any position. ![Toggle](images/bookmarks-toggle.png) ### Toggle Labeled You can even mark _labeled_ bookmarks on any position. ![Toggle](images/bookmarks-toggle-labeled.gif) ## 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. ![List](images/bookmarks-list-from-all-files.gif) * 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 ![Folder](images/bookmarks-folder-icon.png) ## 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. ![Select Lines](images/bookmarks-selection-select-line.gif) #### Expand Selection to the Next/Previous Bookmark or Shrink the Selection Manipulate the selection of lines _between_ bookmarks, up and down. ![Expand/Shrink](images/bookmarks-selection-expand-shrink.gif) ## Available Settings * Allow navigation through all files that contains bookmarks (`false` by default) ```json "bookmarks.navigateThroughAllFiles": true ``` * Allow navigation to wrap around at the first and last bookmarks in scope (current file or all files) (`true` by default) ```json "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 _(`false` by default)_ ```json "bookmarks.saveBookmarksInProject": true ``` * Path to another image to be shown as Bookmark (16x16 px) ```json "bookmarks.gutterIconPath": "c:\\temp\\othericon.png" ``` * Choose the background color to use on a bookmarked line ```json "bookmarks.backgroundLineColor" ``` * Allow bookmarks commands, (Toggle, Jump to Next/Previous), to be displayed on the editor contex menu (`true` by default) ```json "bookmarks.showCommandsInContextMenu": true ``` * Use a **workaround** for formatters, like Prettier, which does not notify on document changes and messes Bookmark's _Sticky_ behavior _(`false` by default)_ ```json "bookmarks.useWorkaroundForFormatters": true ``` > This workaround should be temporary, until a proper research and suggested APIs are available ## Side Bar The **Bookmarks** are now presented in its own **Side Bar**, giving you more free space in your Explorer view. You will have a few extra commands available: * Jump to a bookmark, simply clicking in the bookmark item * Remove a bookmark, right clicking in the bookmark item * Clear the bookmark's file, right-clickin in the file item ![Treeview](images/bookmarks-activity-bar.gif) > The `bookmarks.treeview.visible` setting was deprecated. If you don't want to see the **Bookmarks** icon in the Activity Bar, right-click and uncheck it from the context menu. ## 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](LICENSE.md) © Alessandro Fragnani