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

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

问题描述

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



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



那么我怎样才能在HTML文件中获得正确的注释类型?

解决方案

最后,我发现问题所在。我已经安装了树枝插件(用于Twig php模板引擎),这导致了评论问题。


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 {# #}.

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

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

解决方案

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天全站免登陆