首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >如何使HTML文件中的TODO注释显示在VisualStudio中的任务列表中?

如何使HTML文件中的TODO注释显示在VisualStudio中的任务列表中?
EN

Stack Overflow用户
提问于 2018-07-30 01:45:26
回答 2查看 0关注 0票数 0

只要TODO注释在C#文件中,我就会在任务列表中显示TODO注释。HTML、CSS或JScript中的Todo注释没有显示在我的任务列表中。在VisualStudio 2010 Pro中有启用此功能的方法吗?

EN

回答 2

Stack Overflow用户

发布于 2018-07-30 10:06:23

不是的。

来自:如何:创建任务列表注释(http://msdn.microsoft.com/en-us/library/zce12xx2%28v=VS.100%29.aspx)

The Task List displays comments in your code that begin with the comment marker for your development language. Next to the comments, the Task List also displays a default task token, such as TODO, HACK, or UNDONE, or a custom comment token. The number of comments that appear in the Task List may change, depending on the type of project you are working on. With Visual Basic and Visual C#, the Task List displays all the comments in the solution. With Visual C++ projects, the Task List displays only the comments that are found in the file that is currently active in the editor.

因此,它只支持在VB,C#和C+项目。

票数 0
EN

Stack Overflow用户

发布于 2018-07-30 11:24:20

<% //TODO: page side task %>

即转到代码,然后使用该语言的任务注释。

另一种选择是:

<% 'TODO: page side task for VB %>

注:Arun关于它只显示在打开的页面上的警告,这可能是为什么“No”是最重要的答案,因为它没有充分完成要求的事情。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/-100001717

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档