Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio TODO / Task List not showing up

Using Visual Studio 2010 Express

I have a task list open and on filter setting comments.

It does not show any inline

// TODO whatever

comments at all, whether project or file specific. Any idea why? Do I need to set the tokens manually or something?

like image 417
IamPolaris Avatar asked Jan 09 '12 19:01

IamPolaris


People also ask

How do I see all TODOs in Visual Studio?

From within Visual Studio Go to View -> Task List. This will display the Task List window and show you any area of your open Solution that has existing comments that start with // TODO .


3 Answers

According to this Connect issue, it's turned off by default for C++ for performance reasons.

To enable this feature go to Tools -> Options -> Text Editor -> C/C++ -> Formatting -> Miscellaneous, and set Enumerate Comment Tasks to True.

like image 50
Ahmad Mageed Avatar answered Oct 02 '22 16:10

Ahmad Mageed


I'm using VS2015(Community).

For me, VS seems to search tasks only in opened source files.

Pressing Ctrl+K+H adds the current line into the TaskLists and it wouldn't be hidden even if the source file is not opened.

You can do this from Edit->Bookmarks->Add Task List Shortcut also.

like image 29
JaeJun LEE Avatar answered Oct 02 '22 17:10

JaeJun LEE


I'm using VS2017(Community).

My Enumerate Comment Tasks already set to True, still not working.

However, after I set it to False -> press OK button to close Option dialog -> open Option dialog again -> set the flag to True, it works now.

like image 25
Howard Gong Avatar answered Oct 02 '22 16:10

Howard Gong