Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>ERB ToggleNew to Visual Studio Code? Get it now.
ERB Toggle

ERB Toggle

Kirill Platonov

|
6,034 installs
| (1) | Free
Toggle command for ERB tags
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

VSCode ERB Toggle

This extensions provides toggle command for ERB tags in VSCode.

Command:

erb-toggle.toggleTags

Features

  • Cycles through tags <%= %>, <% %> and <%= %>
  • Multiline support
  • Works in erb, html.erb, js.erb, css.erb, scss.erb

Demo

VSCode ERB Toggle

Keyboard shortcuts

MacOS: Command+Shift+.

Windows & Linux: Ctrl+Shift+.

To customize keyboard shortcuts:

{
  "command": "erb-toggle.toggleTags",
  "key": "ctrl+shift+.",
  "when": "editorTextFocus && editorLangId =~ /erb/"
},

Credits

Inspired by @vortizhe plugin vscode-ruby-erb.

License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft