只要TODO注释在C#文件中,我就会在任务列表中显示TODO注释。HTML、CSS或JScript中的Todo注释没有显示在我的任务列表中。在VisualStudio 2010 Pro中有启用此功能的方法吗?
发布于 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+项目。
发布于 2018-07-30 11:24:20
<% //TODO: page side task %>
即转到代码,然后使用该语言的任务注释。
另一种选择是:
<% 'TODO: page side task for VB %>
注:Arun关于它只显示在打开的页面上的警告,这可能是为什么“No”是最重要的答案,因为它没有充分完成要求的事情。
https://stackoverflow.com/questions/-100001717
复制相似问题