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
212 stars 33 forks source link

Possible to customize the link anchor string and appearance? #146

Closed carloscadux closed 2 years ago

carloscadux commented 2 years ago

Hi,

a) Although I'm a fan of the link anchor, I'd like to change its default string (e.g. to 'connect'). b) Also, the default color is 'green', but I'd like 'purple'.

Are those customizations possible to achieve?

Thanks!

image

macjuul commented 2 years ago

Yes you can definitally customize anchor tags and add your own link tags!

See:

For example, add this to your settings:

"commentAnchors.tags.list": [
    {
        "tag": "CONNECT",
        "scope": "file",
        "highlightColor": "#8e3ef0",
        "behavior": "link"
    }
]
carloscadux commented 2 years ago

It worked. Many thanks! Could you please help further with this fine-tuning customization of 'link anchor':

Once my 'link anchor' functionality is triggered by 'connect', I don't need the default tag 'link' being parsed anymore. => Is it possible to turn off the default green 'link' anchor?

macjuul commented 2 years ago

Sorry for the long delay, this is possible by configuring the default LINK tag by setting enabled to false.