https://github.com/namchee/hyper-comment
Small snippets to boost Visual Studio Code HTML commenting capabilities
https://github.com/namchee/hyper-comment
Last synced: 7 months ago
JSON representation
Small snippets to boost Visual Studio Code HTML commenting capabilities
- Host: GitHub
- URL: https://github.com/namchee/hyper-comment
- Owner: Namchee
- Created: 2020-07-15T04:37:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-05-11T20:02:12.000Z (about 5 years ago)
- Last Synced: 2025-01-30T03:28:06.244Z (over 1 year ago)
- Homepage:
- Size: 1.4 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Hyper Comment
Hyper Comment is a small code snippets to hypercharge Visual Studio Code when writing HTML comment.

## Language Support
- Normal HTML file (`*.html`)
- Vue HTML, which is any HTML code under `` in Vue SFC file (requires [Vetur](https://marketplace.visualstudio.com/items?itemName=octref.vetur) to be installed)
## Features
- **Snippets**, just type `comment` on the supported languages and press `Enter` or `Tab` and this snippet
- **Conditional Commets**, you can add conditional comment by typing `if-comment`
will automatically create a leveled HTML comment.
- **Code surround-with**, you can highlight a block of text in the supported languages and press `Ctrl+Shift+,` to surround it with a leveled HTML comment.
## Motivation
Visual Studio Code provides us with great capabilities to easily write comments in most languages, especially in JavaScript. However, Visual Studio Code only provides barebone capabilities (only `` auto-completion) when it comes to writing comments in HTML (and on any language that embeds it).
This small extension enhances those capabilites by providing a leveled comment snippet with descriptive (enough) label.
Of course, you can use **HTML5 Semantics** or **id** or **class** to do this, but I think you can do better by providing your HTML code with useful comments.