TODO: comments do not appear in the task list

I had to reinstall all my development tools after a hard disk crash, and I had a problem with Visual Studio.

I had a bunch of //TODO: elements scattered across all my projects, and I can’t get them to appear in my task list in the "User Tasks" section. I restarted Visual Studio, but I checked the tokens in the settings of the task list and indicated TODO.

Any idea on how I can list them again? I don’t remember to change any settings the last time I installed VS to make this work.

+9
visual-studio-2008 tasklist todo
Nov 02 '09 at 21:42
source share
4 answers

By default, TODO comments are displayed only in the task list for open files. Visual Studio does not automatically search for the entire solution.

Over time, many users receive most of the project files most of the time (at least for moderate-sized projects), because Visual Studio remembers these settings in the * .suo file. Typically, users do not close files, so open files tend to accumulate. * .Suo files themselves are usually not stored in the source control, therefore, when rebuilding your workstation, everything does not open immediately and tasks will not be displayed.

+8
Nov 02 '09 at 21:48
source share

An easy way to search for any TODO elements is to simply use the search option in the search files, search // TODO and select the “Log In” option for the “Target Solution”.

It will look in all files, not just open ones.

+3
Nov 02 '09 at 10:00
source share

I noticed that TODO comments will be displayed in the task list of closed files located in the App_Code folder. Any comments in the code behind the page or user control (i.e. Not in the App_Code folder), then it will not be displayed in the task list.

I started using #warning and ran a warning message with TODO: in the hope that this problem could one day be fixed!

+2
Feb 11 '11 at 16:43
source share

I got the impression that even when the worklist is working fine, are the TODO elements displayed only for open files (or some other restrictions)?

I’m in the habit of just using the “Find in Files” text search to list each TODO in the whole solution. He's a little less cute, but he works every time.

+1
Nov 02 '09 at 21:52
source share



All Articles