Qt Creator TODO plugin Tutorial
-
I've noticed other posts around the web mentioning the existence of Dmitry Savchenko's Todo Plugin for Qt Creator (Add it in Creatir 2.5 by Help -> About Plugins... -> Utilities -> Todo). I can't quite figure out how to use it optimally.
I've figured out that I can flag comments with TODO and they'll come up in the To-Do Entries Pane, but what else can I do?
@int hi = 9; //TODO: make this do stuff@Are there instructions or a tutorial for this handy tool anywhere?
-
Once you've enabled the plugin, you should have a "To-Do" item in your Tools->Options... dialog box.
In it, you can create, edit, and delete different keyword filters which the plugin will scan for. Off the top of my head, I think there are filters for BUG, FIXME, NOTE, and TODO. Maybe others, I can't remember. You can edit each keyword to set the display color and the icon shown for each item in the "To-Do Entries" output window.
You can also set the scope for whether it only parses the currently open files or parses the entire project.
-
Abhy: You will need to upgrade to a version of creator that has the plugin. IIRC it was added in the 2.5 timeframe... just grab the most recent version and you are fine.
-
Abhy: If something does not work, then please file a bug report so that we can fix it!
I am using Qt creator from the master branch all the time, so I might be the wrong person to ask for advice whether upgradig is a good idea or not;-)