ERB-VSCode-Snippets
====================
This extension is a fork of ERB-Sublime-Snippets
A collection of Visual Studio Code snippets useful for writing ERB
Version
0.0.3 ~ 0.0.4 - Syntax fixed
0.0.2 - First release
Features
Installation
These snippets can now be installed via VS Code Marketplace.
Manual installation with extension
- Download erb-vscode-snippets.vsix
- Press
F1 enter ext vsix
- Select
erb-vscode-snippets.vsix
Manual installation without extension
- You can just copy the snippets from snippets.json
- Go to
Preferences > User Snippets and enter erb
- Paste the snippets code
Snippets and Bindings
Snippet |
Tab Trigger |
Output |
ERB tags |
__er__ |
`` |
print ERB tags |
__pe__ |
`` |
print ERB comment |
__pc__ |
`` |
`if` block |
__if__ |
`...` |
`if` / `else` block |
__ife__ |
`......` |
`else` tag |
__else__ |
`` |
`elsif` tag |
__elsif__ |
`` |
`unless` block |
__unless__ |
`...` |
`end` block |
__end__ |
`` |
`submit_tag` helper |
__st__ |
`` |
`text_field_tag` helper |
__tft__ |
`` |
`password_field_tag` helper |
__pft__ |
`` |
`label_tag` helper |
__lblt__ |
`` |
`link_to` helper |
__lt__ |
`` |
`each` helper |
__each__ |
` ... ` |
`form_for` helper |
__ff__ |
` ... ` |
`t()` helper |
__t__ |
`` |
|