Is there a way to make Qt Creator recognize TODO and FIXME comments, so that I can access a compiled list somewhere of all these comments?
Asked
Active
Viewed 1.4k times
2 Answers
48
Yes, go to Help / About Plugins... menu, under the Utilities section you will find the Todo plugin, so you simply have to enable it. After restarting Qt Creator you will see the To-Do Entries button on the bottom of the main window, which opens up a panel listing all TODO, FIXME and so on comments.
The plugin has some minor issues, the one I remember is that international characters are not displayed correctly, but in general it works quite well.

NG_
- 6,895
- 7
- 45
- 67

pragmanomos
- 976
- 8
- 9
-
4You can edit the list of tags under: Tools -> Options -> To-Do – Martin R. Feb 23 '16 at 16:37
-
1Note that the Plugin needs correct casing. It will only highlight TODO. todo, Todo, ToDo would have to be added manually (which is very easy). – efkah Jun 16 '16 at 05:49
-
As of Qt Creator 4.14.2, the relevant comments are not highlighted in the code window, they look just like regular comments. Don't know if this is a regression or if it never actually highlighted them. Having a "Todo entries" tab at the bottom of the window is better than nothing, though. – syam May 12 '21 at 18:00
3
There is a Todo plugin which enables this feature. It is included since version 2.5 (https://blog.qt.io/blog/2012/05/09/qt-creator-2-5-0-released/)

ololuki
- 377
- 1
- 7
- 14

user3779331
- 291
- 1
- 3