wayou / vscode-todo-highlight

a vscode extension to highlighting todos, fixmes, and any annotations...
https://marketplace.visualstudio.com/items?itemName=wayou.vscode-todo-highlight
MIT License
515 stars 100 forks source link

keywordsPattern multiple styles #144

Open clankill3r opened 5 years ago

clankill3r commented 5 years ago

For the keywordsPattern I would like to use multiple styles depending on the pattern. As for now it seems this is not possible or the documentation really lacks.

Also I think something like isPattern would make more sense:

   { 
        "text": "TODO:|FIXME:|\\(([^)]+)\\),
        "isPattern": true,
        "color": "#0F0",
        "backgroundColor": "#202020"
    }
ciriousjoker commented 5 years ago

I really support the isPattern approach, this is exactly what I've been looking for.

ZaLiTHkA commented 5 years ago

I see there's currently an open PR that provides this type of functionality (see #152), haven't tried it myself yet, but I have a feeling that manually installing extensions may mess with my "settings sync" extension usage a little bit...

@wayou, any chance of getting that PR tested and (hopefully) merged?

alvaromartmart commented 4 years ago

This would be a great addition!

jgclark commented 4 years ago

@CiriousJoker, @clankill3r, @ZaLiTHkA, @alvaromartmart: I've now forked this extension into https://github.com/jgclark/vscode-todo-highlight, and made available on the Marketplace. It includes better documentation, more examples, update for remote development, addition of regex per highlight (the PR from #152) etc.

You'll need to uninstall this extension and then install the new one from the marketplace, TODO Highlight v1.2.0.