vscode-comment-anchors
vscode-comment-anchors copied to clipboard
Possible to customize the link anchor string and appearance?
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!

Yes you can definitally customize anchor tags and add your own link tags!
See:
- https://github.com/StarlaneStudios/vscode-comment-anchors#tag-customization
- https://github.com/StarlaneStudios/vscode-comment-anchors#custom-anchor-tags
For example, add this to your settings:
"commentAnchors.tags.list": [
{
"tag": "CONNECT",
"scope": "file",
"highlightColor": "#8e3ef0",
"behavior": "link"
}
]
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?
Sorry for the long delay, this is possible by configuring the default LINK tag by setting enabled to false.