vb.net:是否可以一次注释掉超过 1 行的代码? [英] vb.net: is it possible to comment out more than 1 line of code at a time?

查看:23
本文介绍了vb.net:是否可以一次注释掉超过 1 行的代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道在 Java 和其他不错的语言中,可以同时注释掉一堆行.是否可以在 vb.net 中执行此操作?

i know in java and other nice languages it's possible to comment out a bunch of lines at the same time. is it possible to do this in vb.net?

推荐答案

如果你的意思是在语法上,比如 C++ 中的 /* ... */ ,那么不.但是,如果您指的是来自 IDE,那么来自 Visual Studio:

If you mean syntactically, like /* ... */ in C++, then no. But if you mean from your IDE, then from Visual Studio:

  • 突出显示要注释掉的文本
  • 输入Ctrl+K,然后Ctrl+C
  • 您还可以使用 Ctrl+K取消注释文本,然后使用 Ctrl+U
  • Highlight the text you want to comment out
  • Type Ctrl+K, then Ctrl+C
  • You can also uncomment text using Ctrl+K, then Ctrl+U

这篇关于vb.net:是否可以一次注释掉超过 1 行的代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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