Search code examples
pycharmtodo

Searching 'TODO' is not working in PyCharm


TODO is not working in PyCharm. When I comment out and use TODO, there is no any highlight and PyCharm also found 0 TODO items.

And I also create a new project but the result is same. Here is what I did:

screenshot Here is what I did


Edit:

Someone advised me to check the TODO setting, but mine is fine. My PyCharm setting:

screenshot My PyCharm setting


First add:

Somehow it worked. I did nothing, but it worked.

But there is one more question for me. I mark a directory as exclusion. And in there TODO still does not work. Is it normal or get a new hitch?


Solution

  • Make sure default TODO patterns are in place:

    enter image description here