Working with TODO in PhpStorm
When working on a project, it’s often needed to create a list of tasks for yourself or your team mates. While usually these tasks are described in an issue tracker like YouTrack, some tasks are either too small or too code-specific to describe in an issue tracker. In such case, adding todo comments in source code makes sense.
Many developers already use comments in their code to describe these small tasks, typically using a statement like the following:
PhpStorm recognizes these comments and will automatically display them in the TODO tool Window (Alt+6 or View | Tool Windows | TODO).
From the TODO tool window, we can select a todo comment and navigate to it by double-clicking it or using the Jump to Source context menu (F4).
There are a lot more features in PhpStorm around todo comments. Check our tutorials page for advanced topics like todo pattern recognition, live templates and todo filtering.
As always, we appreciate your feedback in the comments below or in our forums!
Develop with pleasure!
– JetBrains PhpStorm Team