Search code examples
pythonpycharmhighlighttodo

Why is Pycharm not highlighting TODO's?


In my settings, I have the TODO bound to highlight in yellow, yet in the actual code it does not highlight. Here is a screenshot of my settings: Editor -> TODO

Does anyone know how to fix this?

EDIT: I even tried re-installing Pycharm and I still have the issue.

EDIT 2: In the TODO Window, it is saying "0 TODO items found in 0 files". I believe this means it is looking in the wrong files to check for TODO items. However, when I try to find TODO items in "this file" it still doesn't work. Does anyone know why this is?


Solution

  • Go to Preferences (or Settings), Project Structure, and make sure the folder with your files is not in the "Excluded" tab's list.

    Click the folder you want to include and click on the "Sources" tab. Click Apply, then OK!

    It should work.