How to make TODO comments appear in the task list for C ++ projects in Visual Studio 2010?

I want my TODO comments to appear in the task list in Visual Studio 2010 for a C ++ project, but they do not. I looked through this one , but I see no warnings other than the TODO comments that should be in the file that is currently opening. For example, creating a new Win32 console application puts this:

// TODO: reference additional headers your program requires here 

in the new file, stdafx.h. However, there is nothing in the task list.

I have "Comments" selected from the drop-down list of tasks, but it is always empty. And this is not this problem ; I can open the file and see the TODO comment in the code editor, and no task is displayed. This is not a problem for C # projects, as TODO comments are displayed according to the projects; this seems to be a problem specific to C ++ projects.

What else can I check?

+14
visual-studio-2010
Dec 26 '10 at 20:49
source share
2 answers

This is disabled by default for performance reasons. Tools + Options, Text Editor, C / C ++, Formatting, Miscellaneous, Enumerate comment tasks = True. Feedback is here .

Also note the comment in the MSDN article on task list comments:

With Visual C ++ projects task. The list displays only those comments that are in the file that is currently active in the editor.

+28
Dec 26 '10 at 21:04
source share

This is what I got from MSDN:

Hello,

β€œComment tasks in the Task List window are disabled by default for performance reasons. You can enable this feature with

Tools-> Options-> Text Editor-> C / C ++ β†’ Formatting-> Miscellaneous-> Enumerate comment tasks.

We apologize for the inconvenience.

Thanks to Sumit Kumar Visual C ++ Team

+3
May 22 '12 at 5:14
source share



All Articles