gpt4 book ai didi

asp.net - 我可以在 Visual Studio 2010 中将任务列表项添加到 csHTML 中吗?

转载 作者:行者123 更新时间:2023-12-01 23:18:29 24 4
gpt4 key购买 nike

背景:

我对 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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com