Handlebars Snippets + Handlebars Template Generator for Visual Studio Code
Handlebars Snippets extension provides handlebars snippets as well as generates handlebars templates.
Installation
- Press Shift + Ctrl + P (Windows) or Shift + Cmd + P (Mac OS X) to launch Command Pallete.
- Search for handlebars-snippets and install it.
Supported languages for handlebars snippets(file extensions)
- Handlebars (.handlebars)
- hbs (.hbs)
- HTML (.html)
- JavaScript (.js)
Snippets command
Press Tab to trigger snippet commands
Prefix |
Method |
hif |
{{#if }} {{/if}} |
hifelse |
{{#if }} {{else}} {{/if}} |
hunless |
{{#unless }} {{/unless}} |
heach |
{{#each list}} {{/each}} |
heachelse |
{{#each list}} {{else}} {{/each}} |
hwith |
{{#with }} {{/with}} |
hpar |
{{> }} |
Supported languages for handlebars template(file extensions)
- Handlebars (.handlebars)
- hbs (.hbs)
Handlebars Template Generator command
Press Tab to trigger template commands
Prefix |
Description |
hbs |
Will load hbs template |
hbs4 |
Will load hbs with bootstrap4 template |
hbs4navbar |
Will load hbs template with bootstrap4 template + navbar |
| |