alefragnani / vscode-bookmarks

Bookmarks Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks
GNU General Public License v3.0
1.65k stars 161 forks source link

[FEATURE] - Toggle bookmarks via mouse click (context menu) in the gutter #615

Closed alefragnani closed 1 year ago

alefragnani commented 1 year ago

This has been requested a few times over the years (#24, #49, #245, #420), and with the new improvements the VS Code team made in the glyph margin decorator in v1.78 (https://code.visualstudio.com/updates/v1_78#_glyph-margin-decoration-rendering-improvements) and the new API provided (https://code.visualstudio.com/updates/v1_78#_editorlinenumbercontext-menu) it is now possible.

There will be two new items in the context menu while clicking in the gutter on a line with no bookmarks

And if you click on a bookmarked line, there will be a single command instead