Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>ERB-VSCode-SnippetsNew to Visual Studio Code? Get it now.

ERB-VSCode-Snippets

ZneuRay

|
32,872 installs
| (0) | Free
A collection of Visual Studio Code snippets useful for writing ERB
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

feature

Installation

These snippets can now be installed via VS Code Marketplace.

Manual installation with extension

  1. Download erb-vscode-snippets.vsix
  2. Press F1 enter ext vsix
  3. Select erb-vscode-snippets.vsix

Manual installation without extension

  1. You can just copy the snippets from snippets.json
  2. Go to Preferences > User Snippets and enter erb
  3. 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__ ``

License

Released under WTFPL, Version 2

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft