你怎么标志码,这样就可以回来以后并在其上工作的? [英] How do you flag code so that you can come back later and work on it?

查看:129
本文介绍了你怎么标志码,这样就可以回来以后并在其上工作的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在C#中我使用了指令#warning #ERROR 指令,

 指令#warning这是肮脏的代码... 
一切爆炸之前#ERROR解决这个问题!



这样,编译器将让我知道我还有很多工作要做。你用什么技术来标记代码,这样你就不会忘记吧?<​​/ P>

解决方案

我<$ C $标记它C> // TODO:的意见,在Visual Studio中的任务窗格中显示出来。


In C# I use the #warning and #error directives,

#warning This is dirty code...
#error Fix this before everything explodes!

This way, the compiler will let me know that I still have work to do. What technique do you use to mark code so you won't forget about it?

解决方案

I mark it with //TODO: comments that show up in the task pane in Visual Studio.

这篇关于你怎么标志码,这样就可以回来以后并在其上工作的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆