StarlaneStudios / vscode-comment-anchors

⚓A Visual Studio Code extension that adds support for comment anchors 🔭
https://marketplace.visualstudio.com/items?itemName=ExodiusStudios.comment-anchors
MIT License
206 stars 32 forks source link

Feature Request: Json Extension Settings: Use a dictionary key value for each anchor. #152

Closed dbramblett closed 1 year ago

dbramblett commented 2 years ago

If the name of an anchor was defined via a key rather than a property within the anchor declaration in the settings JSON, it would be possible to fold it AND see which anchor it is.

Specific use case, I have a lot of anchors defined and if I could fold them so only the name of the anchor was visible, I could get a lot more of them on screen at once, which in turn would allow me to compare two anchors at opposite ends of the list more easily.

macjuul commented 1 year ago

I've faced similar frustrations before so I've gone ahead and updated the way anchors are configured. The old array-based syntax is still accepted as well but has been marked as deprecated.

image

Hopefully this is what you had in mind!