VS2010C#注释任务不';如果后面有评论,就不要出现

VS2010C#注释任务不';如果后面有评论,就不要出现,c#,visual-studio-2010,visual-studio,C#,Visual Studio 2010,Visual Studio,要在任务列表中添加任务,我只需编写//todo:[message]。但若这一行被注释,那个么问题就会发生,那个么该任务就会消失 例如 工作一 MessageBox.Show("Hello");//todo : text text //MessageBox.Show("Hello");//todo : text text 没用的 MessageBox.Show("Hello");//todo : text text //MessageBox.Show("Hello");//todo : te

要在任务列表中添加任务,我只需编写
//todo:[message]
。但若这一行被注释,那个么问题就会发生,那个么该任务就会消失

例如

工作一

MessageBox.Show("Hello");//todo : text text
//MessageBox.Show("Hello");//todo : text text
没用的

MessageBox.Show("Hello");//todo : text text
//MessageBox.Show("Hello");//todo : text text
实际上,当我想禁用一些临时代码时,我会将其注释掉。但是后来我丢失了里面的任务注释,不得不用Ctrl+F手动搜索所有待办事项。

尝试以下操作:

/*MessageBox.Show("Hello"); //todo : text text*/

任务列表标记需要位于注释的开头,嵌套注释不会被视为新注释


//todo
放在新行上。

尝试以下类型的注释:

//todo : text ext
//MessageBox.Show("Hello");