在 vb.NET 中的单行代码处打断注释
Break a comment at a single line of code in vb.NET
这是一个基本的:
Is it possible to break a comment to allow you to continue to write the code at the very same line in vb.NET
?
我问是因为我的代码中有一段我想在代码本身之前注释代码(逐行):
'Comment here <code>
而不是
<code> 'Comment here
我知道我们可以使用标签 Rem
代替 '
来初始化评论,但我不知道是否可以打破 Rem
(或 '
) 继续写代码。
拜托,我知道你们中的一些人会指出这种程序的缺点。但是我还是想知道怎么做...
谢谢
不可以,不能在同一行的评论后面有代码。
documentation 状态:
Comments can follow a statement on the same line, or occupy an entire line.
要在代码之前添加注释,请将注释放在前一行。
这是一个基本的:
Is it possible to break a comment to allow you to continue to write the code at the very same line in
vb.NET
?
我问是因为我的代码中有一段我想在代码本身之前注释代码(逐行):
'Comment here <code>
而不是
<code> 'Comment here
我知道我们可以使用标签 Rem
代替 '
来初始化评论,但我不知道是否可以打破 Rem
(或 '
) 继续写代码。
拜托,我知道你们中的一些人会指出这种程序的缺点。但是我还是想知道怎么做...
谢谢
不可以,不能在同一行的评论后面有代码。
documentation 状态:
Comments can follow a statement on the same line, or occupy an entire line.
要在代码之前添加注释,请将注释放在前一行。