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

Add TODO category/type

Open osenvosem opened this issue 7 years ago • 5 comments

Please, add the ability to assign a type/category/namespace to a TODO in order to have the opportunity to view just one type of todos.

osenvosem avatar Oct 03 '18 14:10 osenvosem

What types would you use? I just don’t know what is the reason of this feature

pniedzwiedzinski avatar Oct 20 '18 07:10 pniedzwiedzinski

Leng-term and short-term for instance, or todos from a specific section of an app, like in the boundaries of a single feature being developed, while some other TODOs are not relevant at the moment.

osenvosem avatar Oct 20 '18 07:10 osenvosem

I think you could use todohighlight.keywors option in settings.json. It's an array with labels that todohighlight will be looking for in your files. But you would need to pre-define all of them, so if you have a list of what categories it would be you can just insert them in there. You can even customize highlight style.

"todohighlight.keywords": [
        "TODOLONG:",
        "TODOSHORT:",
        {
            "text": "NOTE:",
            "color": "#ff0000",
            "backgroundColor": "yellow",
            "overviewRulerColor": "grey"
        },
        {
            "text": "HACK:",
            "color": "#000",
            "isWholeLine": false,
        },
],

pniedzwiedzinski avatar Oct 20 '18 07:10 pniedzwiedzinski

What about adding some sort of tagging? // TODO: fix some issue #some-tag

thitemple avatar Oct 18 '19 14:10 thitemple

@thitemple It might be a good idea but it looks that this repository is stale for over a year 😞

pniedzwiedzinski avatar Oct 18 '19 14:10 pniedzwiedzinski