Try adding a colon:
//TODO: text
// ^^^
// colon
This worked for me (with Enumerate Comment Tasks
set to True
, as you mentioned) in Visual Studio 2012 Ultimate.
Caveat: the file needs to be open AND active for it to appear in the task list in C++, according to the Visual Studio 2008 documentation:
With Visual Basic and Visual C#, the Task List displays all the comments in the solution. With Visual C++ projects, the Task List displays only the comments that are found in the file that is currently active in the editor.
I couldn't find the equivalent documentation for any later versions, but the behaviour seems to be unmodified in Visual Studio 2012 which is a shame because it makes the feature rather limited in usefulness.