Home » Php » Why don't I see my TODOs for my PHP files in Eclipse?

Why don't I see my TODOs for my PHP files in Eclipse?

Posted by: admin July 12, 2020 Leave a comment

Questions:

Why don’t I see my TODOs for my PHP files in Eclipse?

I ran into this issue in PDT, I just wanted to put the answer up in case someone else did too.

How to&Answers:

I ran into this issue in PDT, I just wanted to put the answer up in case someone else did too.

  • ANSWER * Although PHP doesn’t really need to compile in your IDE, you need to “build” your project for TODO tags to be automatically added as tasks. If you enable Project->”Build Automatically” in Eclipse your TODOs will always become tasks upon saving your file.

Answer:

To get this to work for me (using Eclipse with the Aptana plugin) I had to enable “PHP” as a Project Nature in my project properties, under Project | Properties | Project Natures

I had it set to “Web” and I was only getting TODOs from my Javascript files.