Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>ERB Inline JS HelperNew to Visual Studio Code? Get it now.
ERB Inline JS Helper

ERB Inline JS Helper

DK Project

|
3 installs
| (0) | Free
VS Code extension to provide syntax highlighting for JavaScript in ERB files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ERB Inline JS Helper

Syntax highlighting for JavaScript embedded in Rails ERB javascript_tag blocks and inline strings.

Sample

Features

  • Highlights JavaScript inside <% javascript_tag do %> ... <% end %> blocks.
  • Highlights JavaScript inside <%= javascript_tag "..." %> or <%= javascript_tag '...' %>.
  • Works as an injection into text.html.erb grammar for ERB files.

Installation

  • Visual Studio Marketplace: https://marketplace.visualstudio.com/items?itemName=kudoas.erb-inline-js-helper
  • Quick open in VS Code: vscode:extension/kudoas.erb-inline-js-helper

Usage

Open any .erb file that uses javascript_tag and the JavaScript section will be highlighted automatically.

Configuration

No settings are required.

Known Issues

  • Only javascript_tag is supported. Other helpers or custom methods are not detected.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft