Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TODO: comments are not showing up in the Task List

I had to reinstall all my development tools after a hard drive failure and I'm having a problem with Visual Studio.

I had a bunch of //TODO: items scattered throughout my projects and I can't get them to show up in my Task List under the User Tasks. I restarted Visual Studio to no effect, then I checked the tokens in the Task List settings and TODO is listed.

Any idea on how I can get them to be listed again? I don't remember having to change any settings last time I installed VS to get this to work.

like image 588
Brandon Avatar asked Nov 02 '09 21:11

Brandon


People also ask

How to check TODO in Visual Studio?

Also, if your TODOs use a different string than TODO , you can make those show upin the task list as well by going to Tools->Options->Task List and adding items to the "Token list:" there (along with priority). Visual Studio will generate a small comment block when you type three slashes: ///, that's about it.

What is task list in Visual Studio?

Applies to: Visual Studio Visual Studio for Mac Visual Studio Code. Use Task List to track code comments that use tokens such as TODO and HACK , or custom tokens, and to manage shortcuts that take you directly to a predefined location in code. Click on the item in the list to go to its location in the source code. Note.

What is task list in VB net?

Task list is nothing but an integrated to-do list within the Visual Studio framework. We can use Task list feature of VS framework to create 3 types of tasks. Comments. Shortcuts. User Tasks.


2 Answers

I had the same issue, after reading around (https://www.simba.com/blog/visual-studio-tip-enabling-todo-tasks/), I found this worked (in VS2019):

From Tools->Options->Text Editor>C/C++>View, ensure that "Enumerate Comment Tasks" is set to True under the Miscellaneous heading.

Once you press OK, I refreshed by adding a tag and et voila, the TODO items appeared in the task list window.

like image 113
francelife23 Avatar answered Oct 27 '22 04:10

francelife23


An easy way to find any TODO items is to simply use the Find in Files search option, search for //TODO, and select the Look in option to be 'Entire Solution'.

This will look in all the files, and not just the open ones.

like image 44
Andy Avatar answered Oct 27 '22 05:10

Andy