skip to Main Content

The image of the issue

I try to comment in CSS format(/**/) but i got html comment format pls anyone who know this how to solve this. and PLS tell me that it is happening because of what and how ?. I’ve tried to search it but i couldn’t find it.

2

Answers


  1. It’s likely happening because you’re writing CSS in an HTML file, and VSC is likely not programmed for these edge cases. Use a different file for your CSS. I tried searching for an extension that might solve the issue but I couldn’t find anything – perhaps you or someone else can find it?

    Login or Signup to reply.
  2. It actually works fine on my VSCode I’m using the latest version (1.79) user install.

    You can try setting a keyboard shortcut for toggle comment here:
    Settings > keyboard shortcuts > Emmet Toggle Comment

    Add a keybinding it, and it must work then.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search