C# Todo 任务未出现在 Visual Studio 2012 的任务列表中
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12290235/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Todo tasks not appearing in the Task List in visual studio 2012
提问by SamuelDavis
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.
我最近升级到 Visual Studio 2012,除了以“//todo”开头的注释不再显示在任务列表中之外,没有任何问题。我完全不知道从哪里开始寻找这个问题的解决方案,因为所有的关键字都太笼统了。
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.
我遇到了其他类似的问题,答案是包含 //todo 注释的文件没有打开,但对我来说情况并非如此。即使文件在我面前打开,我的待办事项评论也不会显示。
采纳答案by Furkan Ekinci
Actually there is a dropdown control at the top of the "Task List" window and if you use the Visual Studio 2012 Dark Themethe dropdown looks like a label. If you click the "User Tasks" text, you will see "Comments" selection which lists your comments that contain "//todo".
实际上,“任务列表”窗口顶部有一个下拉控件,如果您使用Visual Studio 2012 深色主题,则下拉列表看起来像一个标签。如果单击“用户任务”文本,您将看到“注释”选项,其中列出了包含“//todo”的注释。


回答by Peter Ritchie
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.
回答by RckLN
** For Visual Studio 2012 **
** 对于 Visual Studio 2012 **
- Select View -> Other Windows -> Task List.
- 选择查看 -> 其他窗口 -> 任务列表。


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".
在任务列表窗口中选择选项“注释”。


回答by McLan
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
// TODO
to
到
// TODO: do not forget the colon
// TODO: do not forget the colon
回答by Kenan Aksoy
Task list comments just shows current files TODO comments. This may be a bug of Visual Studio.
任务列表注释仅显示当前文件 TODO 注释。这可能是 Visual Studio 的错误。
回答by peroija
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。

