在VB .NET中缺少块注释? [英] Lack of block comments in VB .NET?

查看:161
本文介绍了在VB .NET中缺少块注释?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是一个感兴趣的问题:有人知道为什么在VB .NET没有块注释功能? (除非真的有 - 但我从来没有碰到它。)

Just a question of interest: Does anyone know why there's no block comment capability in VB .NET? (Unless there really is - but I've never yet come across it.)

推荐答案

Visual Basic语法,新行终止语句。这使得多行注释与编译器解析语言的基本方式非常不兼容。

It is a side-effect of the Visual Basic syntax, a new-line terminates a statement. That makes a multi-line comment pretty incompatible with the basic way the compiler parses the language. Not an issue in the curly brace languages, new-lines are just white space.

这不是一个真正的问题,Visual Basic已经强大的IDE支持很长时间。注释掉多行是一个IDE功能,编辑+高级+注释选择。

It has never been a real problem, Visual Basic has had strong IDE support for a very long time. Commenting out multiple lines is an IDE feature, Edit + Advanced + Comment Selection.

这篇关于在VB .NET中缺少块注释?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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