Make it easier to find TODOs

This may be something that I use more than others, but as I’m building (or refactoring) new apps and functionalities, I then to add a lot of “TODOs” to my code when some code needs others things done first or when I need to stop doing that to do other stuff first.

What I usually do is just create a comment that starts with TODO like this:

if some_condition:
    # TODO: create this functionally later
    pass

On IntelliJ and PyCharm, comments like this are highlighted in yellow (on dark themes, don’t know how they look like on lighter themes):
image

It would be really good if the IDE could also hightlight comments that starts with a certain pattern. My suggestions would be:

# TODO: hightlight lines like this
""" TODO: and also like this """
""" TODO: Probably hightlight the entire comment
    * When uses patterns like this, or maybe always
"""
# TODO maybe don't hightlight this (without :)
# And also don't hightlight when TODO is not the first word
# Neither hightlight todo (lower case), since "todo" is a common portuguese word (this happend a lot in IntelliJ)

If I may add a second related feature request, it would be great if there was a way of “managing” TODOs with a section listing them, like another tab in the lower panel. Something like this:


Added here:

1 Like

For now, I just do a global Search for TODO. Or put TODO in the local search. That highlights it in the current source pane.

1 Like

Yeah. That’s what I do. The highlight (and/or a section) would just make it easier to remember you actually need to do something.

Ah. So this is about making them easier to see, all the time, not about finding them on demand. I took your title too literally.