简体   繁体   English

在 Vs Code 中制作注释行的问题

[英]problem about making comment line in Vs Code

I used to make an uncomment line as a commented one by these hot keys ctrl+/ but I don't know why recently I couldn't do that.我曾经通过这些热键 ctrl+/ 将取消注释行作为注释行,但我不知道为什么最近我不能这样做。 as I try it my line changes from this:当我尝试它时,我的线路从这里改变:

 <div class="form-outline mb-4">

to this:对此:

在此处输入图像描述

and in fact it doesn't changes to a comment line实际上它不会更改为注释行

anybody know how can I fix this problem?有人知道我该如何解决这个问题吗?

Make sure your HTML is selected on the status bar.确保在状态栏上选择了 HTML。 在此处输入图像描述

You can change it by, Ctrl + Shift + P and then Change Language Mode .您可以通过Ctrl + Shift + P更改它,然后Change Language Mode Set to HTML.设置为 HTML。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM