Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Ruby Syntax HighlightingNew to Visual Studio Code? Get it now.
Ruby Syntax Highlighting

Ruby Syntax Highlighting

Sarah Ridge

|
62,232 installs
| (1) | Free
Adds Ruby, ERB and Gemfile Language Grammars.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ruby Syntax Highlighting for Visual Studio Code

Published Version to VS Code VS Code Downloads VS Code Installs GitHub License

Ruby, ERB and Gemfile Syntax Support.

This Extension allows for Ruby Syntax Support without needing to install language server, debugger etc. for a way to keep things simple and distraction free.

Install

  • Run: code --install-extension SarahRidge.vscode-ruby-syntax
    • Alternatively, extension can be installed via marketplace
  • Reload VSCode

Notes

  • The initial language grammar was copied from vscode-ruby which is no longer supported
  • ruby-lsp as the successor now maintains ruby grammars

Diffs

  • Added Grammar for Gemfile following bundler docs
  • Added Ternary :
  • Added Ruby Ranges .. / ...
  • Fixed variable recognition ending with ? or !
  • Fixed Comment Blocks for .erb files by adding <%# to each line
  • Fixed multiline arithmetic operations and regex matching collisions

References

  • Syntax Highlight Guide
  • Language Grammar Rules

Related Extension

  • Rails Syntax Highlighting

Publish (internal)

Note: Publishing a new version of this theme is only meant for maintainers.

  • yarn run vs-package
  • yarn run vs-publish

Ruby Logo © 2006, Yukihiro Matsumoto: https://www.ruby-lang.org/en/about/logo/

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