JetBrains WebStorm 评论快捷方式对于 html 是错误的

JetBrains WebStorm comment shortcut is wrong for html

我使用的是 JetBrains WebStorm 2016.3.3,我使用快捷方式作为注释行。

当我在 HTML 文件的标签中键入 CTRL + / 时,它会显示:/* my comment */

不过应该是<!- my comment -->

我不明白这是怎么发生的,之前它是有效的。

而我的设置是这样的:

  1. Settings/Preferences | Editor | Language Injections

  2. 从底部删除第 3 个规则 -- 在范围列中具有 IDE 的规则。

您以某种方式创建了在 <head> 标记内注入 CSS 的注入规则(很可能您在没有查看屏幕上正在发生的事情的情况下打字太快).