Todo tasks not appearing in the Task List in visua

2019-03-09 14:52发布

问题:

I've recently upgraded to Visual Studio 2012 and haven't have any problems except for the fact that comments beginning with "//todo" no longer show up in the task list. I have absolutely no idea on where to start looking for a solution to this problem as all of the keywords are too general.

I came across other similar questions where the answer was that the file wasn't open containing the //todo comment, but that is not the case for me. My todo comments do not show up even when the file is open in front of me.

回答1:

Actually there is a dropdown control at the top of the "Task List" window and if you use the Visual Studio 2012 Dark Theme the dropdown looks like a label. If you click the "User Tasks" text, you will see "Comments" selection which lists your comments that contain "//todo".

Enlarge Image



回答2:

** For Visual Studio 2012 **

  1. Select View -> Other Windows -> Task List.

  1. Select the option "Comments" in the Task List window.

For Visual Studio 2008.

In the Task List window select the option "Comments".



回答3:

You can view what you have set for tokens in Tools/Options under the Environment/Task List item in the left tree. You should have "TODO" in there which should detect //todo.



回答4:

Well, I was Having the same problem working in Windows-7 and Visual Studio 2012. All I had to do is change from:

// TODO

to

// TODO: do not forget the colon



回答5:

Chalk this up to a stupid mistake, if it is not showing for you make sure your code doesn't look like this:

//int justfakecode=1; // TODO: FIX ME LATER

with the token as part of a commented out line. I herped the derp on this one.



回答6:

Task list comments just shows current files TODO comments. This may be a bug of Visual Studio.