Visual Studio TODO / Task List not showing up

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.


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.


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.