HTML comment shortcut for VS Code

If you are a web developer, then you know that the HTML comment tag is a vital part of your workflow. It allows you to leave notes for yourself or for other developers who may be working on the same codebase. But typing out the full tag can be a bit tedious. Fortunately, there is a shortcut you can use in the Visual Studio Code text editor to quickly insert an HTML comment.

For mac
Command + /
Command + K + C

For Windows
Ctrl + /
Ctrl + K + C
Was this helpful?