【发布时间】:2019-09-05 13:04:34
【问题描述】:
我有代码:
<html>
<!-- some comment -->
<div>
</html>
当我试图评论这段代码时(使用 ctrl + / )我得到了这个结果:
<!--
<html>
<!-- some comment -->
<div>
</html>
-->
但我在线有错误,因为这一行有另一个注释:
<!-- some comment -->
如何在html中用cmets注释大块代码?
【问题讨论】:
-
我认为手动删除任何过早的评论终止符 (
-->) 是唯一的方法,可悲的是:( -
可以使用快捷键 ctrl + k , ctrl + c