html - 如何在 Visual Studio 中使用注释来注释 html 代码
问题描述
我有代码:
<html>
<!-- some comment -->
<div>
</html>
当我试图评论这段代码时(使用 ctrl + / )我有这个结果:
<!--
<html>
<!-- some comment -->
<div>
</html>
-->
但我有一个错误在线,因为这一行有另一个评论:
<!-- some comment -->
如何用 html 中的注释来注释大块代码?
解决方案
我发现了问题所在。我已经安装了 twig 插件(用于 Twig php 模板引擎),这导致了评论问题。
推荐阅读
- postman - 获取像数组一样命名的对象的值
- c++ - std::shared_ptr vs std::make_shared:意外缓存未命中和分支预测
- haskell - Haskell - 集合的笛卡尔函数实现为二叉树
- python - iPython azure 机器学习(经典)上缺少模块 tensorflow
- java - 支持字母表的 24 小时制时钟的正确正则表达式是什么(java)
- unix - supervisord 静默停止,但让进程继续运行
- java - 如何在 Selenium 的控制台中打印 PCF Fresh 日志
- azure - Azure ARM 模板跳过嵌套条件
- python - Tensorflow:FailedPreconditionError:找不到所需的函数定义
- azure-cognitive-search - 如何使用 REST API 创建 Azure 搜索索引器