barteloma
barteloma

Reputation: 6875

JetBrains WebStorm comment shortcut is wrong for html

I am using JetBrains WebStorm 2016.3.3 and I use shortcut for comment lines.

When I type CTRL + / in tag of HTML file, it writes: /* my comment */

But it should be <!- my comment -->

I did not understand how it happened, it was working before.

enter image description here

And my Settings are like this:

enter image description here

Upvotes: 0

Views: 1727

Answers (1)

LazyOne
LazyOne

Reputation: 165353

  1. Settings/Preferences | Editor | Language Injections

  2. Delete 3rd rule from the bottom -- the one that has IDE in Scope column.

You've somehow created injection rule that injects CSS inside <head> tag (most likely you were typing too fast without looking at what's happening on the screen).

Upvotes: 1

Related Questions