背景:
我对 Visual Studio 2010 相当陌生(使用 Lua、LIMSBasic (Labware) 和其他一些没有使用像样 IDE 的软件,并且喜欢从我在代码中直接编写的注释中提取任务列表的想法.
我已经研究出了如何使用注释来生成各种方式的“//TODO:”和其他任务列表,并在 stackoverflow 上找到了一些很好的列表,了解我可以做什么类型,但我无法建立(没有不管我如何滥用谷歌)即使可以将它们添加到csHTML文件没关系!
我已尝试使用以下所有内容:
<!--// TODO: Work out how to add todo stuff to the tasklist!-->
// TODO: Work out how to add todo stuff to the tasklist!
<!--TODO: Work out how to add todo stuff to the tasklist!-->
<!-- TODO: Work out how to add todo stuff to the tasklist!-->
@// TODO: Work out how to add todo stuff to the tasklist!
...但任务列表中没有添加任何内容。
问题:
所以我的问题是:是否可以将“TODO:”和其他任务列表项添加到 csHTML(使用 razor 的 MVC 3),如果可以,如何添加?
最佳答案
以下内容应该有效。
@{
//TODO: do stuff here
}
或
@{/* TODO: do stuff here */}
因为它首先必须进入“代码”模式,然后您可以使用任务注释。
但显然以下内容不起作用(在我的 Visual Studio 中):
@*TODO: do stuff here *@
关于asp.net - 我可以在 Visual Studio 2010 中将任务列表项添加到 csHTML 中吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6160403/