Todo tasks not appearing in the Task List in visual studio 2012

左心房为你撑大大i 提交于 2019-12-02 18:40:35

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

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

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.

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

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!