如何在Visual Studio 2010的C ++项目的任务列表中显示TODO注释? [英] How do I make TODO comments show up in the task list for C++ projects in Visual Studio 2010?

查看:318
本文介绍了如何在Visual Studio 2010的C ++项目的任务列表中显示TODO注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让我的TODO注释显示在Visual Studio 2010中的C ++项目的任务列表中,但事实并非如此.我看着,但是在当前打开的文件中,除了TODO注释之外,没有其他注意事项.例如,创建一个新的Win32控制台应用程序将放置以下内容:

// TODO: reference additional headers your program requires here

在新文件stdafx.h中.但是,任务列表中没有任何内容.

我从任务列表的下拉菜单中选择了评论",但它始终为空.而且不是这个问题;我可以打开文件,并在代码编辑器中查看TODO注释,但未显示任何任务.对于C#项目而言,这不是问题,因为TODO注释按这些项目中的设计显示.这似乎是C ++项目特有的问题.

我还能检查什么?

解决方案

默认情况下出于性能原因"处于关闭状态.工具+选项,文本编辑器,C/C ++,格式,其他,枚举注释任务= True.反馈文章在这里.

还请注意MSDN文章中有关任务列表注释的注释:

对于Visual C ++项目,任务 列表仅显示符合以下条件的评论 在以下文件中找到 当前在编辑器中处于活动状态.

I'm trying to get my TODO comments to show up in the task list in Visual Studio 2010 for a C++ project, but they don't. I looked at this, but see no caveats other than the TODO comments need to be in the currently-open file. For example, creating a new Win32 console app places this:

// TODO: reference additional headers your program requires here

in a new file, stdafx.h. However, there's nothing in the task list.

I have "Comments" chosen from the drop-down in the task list, but it's always empty. And it's not this problem; I can open the file and be looking at the TODO comment in the code editor and no task is shown. This is not a problem for C# projects as TODO comments show up as designed in those projects; this appears to be an issue specific to C++ projects.

What else can I check?

解决方案

This is off by default 'for performance reasons'. Tools + Options, Text Editor, C/C++, Formatting, Miscellaneous, Enumerate Comment Tasks = True. Feedback article is here.

Also note the comment in the MSDN article about task list comments:

With Visual C++ projects, the Task List displays only the comments that are found in the file that is currently active in the editor.

这篇关于如何在Visual Studio 2010的C ++项目的任务列表中显示TODO注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆