在 Visual Basic 中如何创建块注释 [英] In Visual Basic how do you create a block comment

查看:23
本文介绍了在 Visual Basic 中如何创建块注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能的重复:
评论VB代码

有人知道如何在 Visual Basic 中进行块注释吗?

Does anybody know how to do a block comment in Visual Basic?

注意:我在这里做了一些搜索,这些结果和可能已经有你答案的问题"的结果似乎都没有问这个问题

Note: I did a few searches on here and neither those results nor the results for 'Questions that may already have your answer' appeared to ask this question

推荐答案

VB.NET 中没有块注释.

There is no block comment in VB.NET.

您需要在要注释掉的每一行前使用 '.

You need to use a ' in front of every line you want to comment out.

在 Visual Studio 中,您可以使用键盘快捷键为您注释/取消注释所选行:

In Visual Studio you can use the keyboard shortcuts that will comment/uncomment the selected lines for you:

Ctrl + K, C 评论

Ctrl + K, U 取消注释

这篇关于在 Visual Basic 中如何创建块注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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