0

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

6
  • does it happen in html or template file? in <script> tag, or in HTML context? Please attach a screenshot that shows up the issue
    – lena
    Jan 31, 2017 at 18:26
  • I noticed after you said that, it happens in <head> element of html file. The issue is not occured out of the <head> element.
    – barteloma
    Jan 31, 2017 at 19:29
  • 1
    can't recreate. seems you have some language injected in <head> element. Can you attach a screenshot?
    – lena
    Jan 31, 2017 at 19:42
  • post updated with screenshot
    – barteloma
    Jan 31, 2017 at 20:19
  • @bookmarker Please post screenshot of Settings/Preferences | Editor | Language Injections (similar case: stackoverflow.com/a/30544613/783119)
    – LazyOne
    Jan 31, 2017 at 20:49

1 Answer 1

1
  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).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.