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

前端 未结 6 1964
走了就别回头了
走了就别回头了 2021-02-01 11:44

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 ha

相关标签:
6条回答
  • 2021-02-01 12:15

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

    0 讨论(0)
  • 2021-02-01 12:16

    ** For Visual Studio 2012 **

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

    enter image description here

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

      enter image description here

    For Visual Studio 2008.

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

    enter image description here

    0 讨论(0)
  • 2021-02-01 12:16

    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.

    0 讨论(0)
  • 2021-02-01 12:24

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

    Screenshot

    Enlarge Image

    0 讨论(0)
  • 2021-02-01 12:32

    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

    0 讨论(0)
  • 2021-02-01 12:40

    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.

    0 讨论(0)
提交回复
热议问题