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.
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.
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.
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.
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.
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.
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