Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Simple Ruby ERBNew to Visual Studio Code? Get it now.

Simple Ruby ERB

Victor Ortiz Heredia

|
159,959 installs
| (5) | Free
Provides simple Ruby and ERB language, code snippets and ERB tag helper support for Visual Studio Code without messing with linting or debugging
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Simple Ruby ERB extension for Visual Studio Code

This extensions tries to provide simple Ruby and ERB support to Visual Studio Code without messing with linting or debugging.

Features

  • Both Ruby and ERB Syntax Highlighting
  • Command for toggle between ERB tags
  • Code Snippets

Command erb.toggleTags

Supports multiple line/selection. Cycles through the tags <%= %>, <% %> and <%# %>.

Simple Ruby ERB

Keyboard shortcut by default ctrl+shift+` but you can always personalize:

// Your keyboard shortcuts
{
  "key": "ctrl+shift+`",
  "command": "erb.toggleTags",
  "when": "editorTextFocus && editorLangId == erb"
},

Inspired by @eddorre SublimeText plugin SublimeERB.

TODO

  • Better code snippets integration
  • Add more rails helpers snippets
  • Modularize extension
  • erb.toggleTags
    • Add tests
    • Improve selection after erb tag insertion

Release Notes

0.2.0

Add rails snippets

0.1.0

Initial release

License

This extension is licensed under the MIT License.

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