vscode-comment-anchors icon indicating copy to clipboard operation
vscode-comment-anchors copied to clipboard

Possible to customize the link anchor string and appearance?

Open carloscadux opened this issue 3 years ago • 2 comments

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

carloscadux avatar Mar 07 '22 16:03 carloscadux

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"
	}
]

macjuul avatar Mar 07 '22 17:03 macjuul

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?

carloscadux avatar Mar 07 '22 17:03 carloscadux

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

macjuul avatar Oct 08 '22 21:10 macjuul