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?
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 .
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 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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With