C# 使用 GhostDoc 在 Visual Studio 中查看所有 TODO 项

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/2165120/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-07 00:04:43  来源:igfitidea点击:

View all TODO items in Visual Studio using GhostDoc

c#visual-studio-2008todoghostdoc

提问by PositiveGuy

I'm also using GhostDocin Visual Studio 2008. How do I view all to-do items and if that's a function already in Visual Studio or in GhostDoc (the documentation tool that I use)?

我也在Visual Studio 2008 中使用GhostDoc。我如何查看所有待办事项,如果这是 Visual Studio 或 GhostDoc(我使用的文档工具)中已有的功能?

回答by Zyphrax

If you are referring to TODOs that are defined with the // TODOcomments, open the Task List and set it to the Comments filter.

如果您指的是使用// TODO注释定义的TODO,请打开任务列表并将其设置为注释过滤器。

Visual Studio - Task List - Comments

Visual Studio - 任务列表 - 注释

Also be careful with GhostDoc. Always read the comment that was generated. I remember that older versions would generate comments like: "Toes the string" for a method like ToString().

还要小心 GhostDoc。始终阅读生成的评论。我记得旧版本会为像 ToString() 这样的方法生成如下注释:“Toes the string”。

回答by bob

ReSharperhas a nice ToDo explorer to get an overview of all todos -or custom keywords- comments.

ReSharper有一个不错的 ToDo 浏览器,可以概览所有待办事项 - 或自定义关键字 - 评论。

回答by Nenotlep

Note that in Express versions like Visual Web Developer 2010 Expressand Visual C# Express 2010, you need to be in Expert mode to enable the task list. Expert mode is at menu ToolsSettingsExpert Mode.

请注意,在Visual Web Developer 2010 ExpressVisual C# Express 2010等 Express 版本中,您需要处于专家模式才能启用任务列表。专家模式位于菜单ToolsSettingsExpert Mode

Then the option to open the list is in menu ViewTask List.

然后打开列表的选项在菜单ViewTask List 中