Visual studio code comment in HTML files

前端 未结 11 618
孤城傲影
孤城傲影 2020-12-16 15:51

I am trying Visual Studio Code lately and i\'ve noticed that when i try to add a line comment in an HTML file (using Ctrl+/ or Ctrl+K Ctrl+C) instead of this: "], "description": "Comment HTML line" }

You can insert that right after the comment in File > Preferences > User Snippets > {YourExtension}

Then, when you start typing 'chtml' in that kind of files, IntelliSense will prompt that snippet.

Maybe this is a workarround, but it works excellent for me. Hope it helps!

https://code.visualstudio.com/docs/customization/userdefinedsnippets

提交回复
热议问题