To restore their activation, just remove the comment code.
需要重新激活代码的时候,只要移除评论代码。
Oftentimes, developers leave themselves a comment in the code, but these are easy to forget.
开发人员时常在代码中留下注释,但是这些注释很容易遗忘。
It then outputs all the comments as HTML code, exactly as was done on the original page but with the exception that this time, it displays the additional comment that the user provided.
然后,将所有的评论内容作为HTML代码输出,其方式与原始评级页面一样,只不过这次页面中额外显示了用户所提供的评论。
For example, if you change a word in a multiline comment, the CDT analyzes the partition containing the comment and not the rest of the code.
例如,如果要在多行注释中改变一个单词,CDT只分析包含了注释的分区,而不分析其余代码。
A good guideline to follow is to write a unit test whenever you feel the need to comment some behavior in the code.
应该遵循下面这条很好的原则:即只要您认为有必要对代码中的某个行为加注,就编写一个单元测试。
Comment your code heavily so that at a later date, you can easily remember the reason your source code was written as it is.
要加上足够的注释,这样以后就可以轻松地想起原来编写代码的原因。
So, if you are writing code, in the absence of a boss or a company policy telling you what to do, how do you comment it?
那么,如果您正在编写代码,而又没有上司或公司的规定可以做指导,这时,又该如何注释呢?
The program cleans up after itself, so if you want to find the values in the registry, comment out the cleanup code at the end.
程序运行后会自己清除,所以如果您想在注册表中找到值,请注释掉程序尾部的清除代码。
The code above creates a table with the document's description and the comment entered when the document was checked in.
上面的代码会创建一个表,表中有文档描述和检查文档时输入的注释。
Don't comment bad code - rewrite it.
别为烂代码写注释——直接把它重写。
Don't just echo the code with comments - makeevery comment count.
不要用重复代码的形式写注释——让每个注释都有意义。
Develop the habit of using good naming and smaller methods and structures to make your code more readable without having to comment what it does.
学会使用良好的名称和更短的方法,在不提供注释说明其用途的情况下提高代码的可读性。
You're not alone if you've ever come across a chunk of code with a comment like this one.
如果您曾经遇到过带有此类注释的代码,这种情况并不少见。
This is often achieved with substituting blocks of code with a single lined comment when such blocks are not essential for the understanding of the current sample.
作者为此常常采用的一种技巧是把对于理解当前例子不是必需的代码段用一行注释来代替。
To do this, look for the following comment in the code a few lines below where you've been editing.
要改变表格颜色,在我们刚编辑过的代码下面几行的如下注释。
Don't comment out code you mean to delete. I have known people to comment out blocks of code they were rewriting and check them in commented out.
不要把应删掉的代码注释掉了事我知道有些人重写提交代码的时候,把旧代码注释掉。
So I'm going to comment those out, and let's go down to this piece of code, and uncomment it.
那么我会把这些注释上,让我们看看这段代码,取消注释。
It's best to comment out the old code and add comments to the new code so it will be easier to track your modifications.
最好是注释掉旧代码并对新代码添加注释,这样可以更轻松地跟踪您的修改。
And if your code is such a tangle that you need a comment for every single line of it, you'd probably profit from making it simpler in other ways first.
如果代码非常混乱以致于需要逐行注释,那么更有利的方式是首先简化代码。
I feel like I'm going cross-eyed as I oscillate between the code and the comment.
我觉得在代码和注释之间看来看去搞得我很晕。
By the way, that's a comment on the first line (with the name of the source file for the code example).
顺便说一下,在第一行有一句注释(在代码例子中是源文件的名字)。
For example, if you added this XML summary comment to your code.
譬如,如果你把这个XML摘要注释加到你的代码里去的话。
As mentioned in the comment, the standard run mechanism for custom code classes is the exec (ITestExecutionServices, String ) method.
正如上面注释中提到的那样,定制代码类的标准运行机制是exec (itestexecutionservices,String)方法。
I have had a look very recently at how the IronRuby guys are approaching it, callcc only exists as a comment in their code.
我最近看了一些IronRuby开发者对于此的实现方式,在他们的代码中,callcc也仅仅是作为注释而存在。
Add protocol-specific elements, transactions, a loop, a comment, conditional processing, and custom code.
添加特定协议元素、事务、循环、注释、条件处理和定制代码。
Also in the code archive are the new comment model and changes to the post model to reflect the model association.
另外代码归档文件提供了新的comment模型和对post模型的更改,可以反映模型关联。
It can't be compiled, executed, or interpreted, thus being "reduced to the level of mere documentation" and adding "no more value to a project than an elaborate code comment".
U ML不能被编译、执行或解释,那它就“只剩文档编制的作用”,而且“对项目来说,除了作为详尽的代码注释外别无他用”。
It can't be compiled, executed, or interpreted, thus being "reduced to the level of mere documentation" and adding "no more value to a project than an elaborate code comment".
U ML不能被编译、执行或解释,那它就“只剩文档编制的作用”,而且“对项目来说,除了作为详尽的代码注释外别无他用”。
应用推荐