HTML 文件中的 Visual Studio 代码注释 [英] Visual studio code comment in HTML files

查看:63
本文介绍了HTML 文件中的 Visual Studio 代码注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在尝试 Visual Studio Code,我注意到当我尝试在 HTML 文件中添加行注释时(使用 Ctrl+/或 Ctrl+K Ctrl+C)而不是这样:<!-- -->,我得到这个{##}.

I am trying Visual Studio Code lately and i've noticed that when i try to add a line comment in an HTML file (using Ctrl+/ or Ctrl+K Ctrl+C) instead of this: <!-- -->, i get this {# #}.

在 JS 或 CSS 文件中,键绑定工作得很好并产生预期的结果.

In JS or CSS files the key bindings work just fine and produce the expected result.

那么如何在 HTML 文件中获得正确类型的注释?

So how can i get the proper type of comments in HTML files?

推荐答案

我终于找到了问题所在.我已经安装了 Twig 插件(用于 Twig php 模板引擎),这导致了评论问题.

Finally i found what the problem was. I had installed the twig plugin (for the Twig php template engine) and that was causing the comments issue.

这篇关于HTML 文件中的 Visual Studio 代码注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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