alefragnani / vscode-numbered-bookmarks

Numbered Bookmarks Extension for Visual Studio Code
GNU General Public License v3.0
146 stars 24 forks source link

[FEATURE] - #169

Closed sosioo closed 1 year ago

sosioo commented 1 year ago

The bookmarks works but are not visible when the glyph margin (glyphMargin) is hidden.

I like to maximize my code window so I don't use the glyph margin. It would be great if bookmarks tags could still be visible when glyphMargin is hidden. For such case, maybe it could use the line number column, adding a color background to the line number?

alefragnani commented 1 year ago

Hi @sosioo ,

The bookmark icon use the glyph margin exactly because it is the indicated location for such elements, and the whole interaction available is defined to work there. If you hide it (and I totally understand your scenario), unfortunately any extension that add icons there, will be missed.

On the other hand, you could make the bookmarked line to be visually distinguishable. Simply use the workbench.colorCustomizations colors contributed by the extension https://github.com/alefragnani/vscode-numbered-bookmarks#available-colors:

"workbench.colorCustomizations": {
    "numberedBookmarks.lineBackground": "#157EFB22",
    "numberedBookmarks.lineBorder": "#FF0000",
    "numberedBookmarks.overviewRuler": "#157EFB88" 
}

Hope this helps