vscode-todo-highlight icon indicating copy to clipboard operation
vscode-todo-highlight copied to clipboard

How to highlight words to end of line?

Open Rietty opened this issue 6 years ago • 3 comments

Hi, is there a way to make it highlight line fully until end of the words/characters. I know I can do it with regex however then I can't change the colour of that?

Is there an existing way to do this?

Rietty avatar Dec 30 '18 19:12 Rietty

For clarification this is different than highlighting the whole line.

Rietty avatar Jan 09 '19 02:01 Rietty

Yes, that would be great to know. 👍

One can only use regex in "todohighlight.keywordsPattern", not in "todohighlight.keywords", but keywordsPattern doesn’t differentiate in colours.

heymartinadams avatar May 14 '19 00:05 heymartinadams

todohighlight.keywordsPattern seems to override the todohighlight.keywords. I follow example posted in the readme in the front page https://github.com/wayou/vscode-todo-highlight. I notice that the todohighlight.defaultStyle will override all the color options in todohighlight.keywords. Is there a way to work around this? Thanks.

datduong avatar Dec 24 '19 21:12 datduong

If you switch to TODO Highlight V2 fork of this extension, then this is possible, as it extends where you can use regex.

jgclark avatar Apr 08 '23 08:04 jgclark