简体   繁体   English

Todo 任务未出现在 Visual Studio 2012 的任务列表中

[英]Todo tasks not appearing in the Task List in visual studio 2012

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.我最近升级到 Visual Studio 2012,除了以“//todo”开头的注释不再显示在任务列表中之外,没有任何问题。 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.我遇到了其他类似的问题,答案是包含 //todo 注释的文件没有打开,但对我来说情况并非如此。 My todo comments do not show up even when the file is open in front of me.即使文件在我面前打开,我的待办事项评论也不会显示。

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.实际上,“任务列表”窗口顶部有一个下拉控件,如果您使用Visual Studio 2012 深色主题,则下拉列表看起来像一个标签。 If you click the " User Tasks " text, you will see " Comments " selection which lists your comments that contain "//todo".如果单击“用户任务”文本,您将看到“注释”选项,其中列出了包含“//todo”的注释。

截屏

Enlarge Image放大图片

** For Visual Studio 2012 ** ** 对于 Visual Studio 2012 **

  1. Select View -> Other Windows -> Task List.选择查看 -> 其他窗口 -> 任务列表。

在此处输入图片说明

  1. Select the option "Comments" in the Task List window.在任务列表窗口中选择选项“注释”。

    在此处输入图片说明

For Visual Studio 2008.对于 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 .你应该在那里有“TODO”,它应该检测//todo

Well, I was Having the same problem working in Windows-7 and Visual Studio 2012. All I had to do is change from:好吧,我在 Windows-7 和 Visual Studio 2012 中遇到了同样的问题。我所要做的就是从:

// 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.我在这个上感染了 derp。

Task list comments just shows current files TODO comments.任务列表注释仅显示当前文件 TODO 注释。 This may be a bug of Visual Studio.这可能是 Visual Studio 的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM