Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Ruby LightNew to Visual Studio Code? Get it now.

Ruby Light

r7kamura

|
194 installs
| (0) | Free
Lightweight VSCode extension for Ruby.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-ruby-light

build

Lightweight VSCode extension for Ruby.

Install

Install via Visual Studio Marketplace:

  • Ruby Light - Visual Studio Marketplace

For Diagnostics and Formatting features, rubocop must be available in the workspace. If Gemfile exists in the current or ancestor directory, bundle exec rubocop is used instead. For the other features, there is no need to install anything additional.

Features

Diagnostics

Displays RuboCop offenses and provides Quick Fix command for autocorrection.

demo

Formatting

Run "Format Document" command or enable "Format On Save" in the settings to autocorrect RuboCop offenses.

demo

Highlight

Hover control keywords to highlight the corresponding keywords.

demo

Selection

Run "Expand Selection" command to select appropriate ranges.

demo

Symbol

Show Outline section in the explorer panel to see symbols in the current file, or run "Go to Symbol" command to search for symbols.

This extension supports the folowiing types of symbols:

  • class
  • module
  • constant
  • instance method
  • singleton method (a.k.a. class method)
  • attribute (attr_accessor, attr_reader, and attr_writer)

demo

Others

  • Add Ruby file extension patterns
  • Add Ruby file name patterns
  • Add indentation rules

Configuration

rubyLight.diagnostics.enabled

Enable diagnostics.

  • default: true

rubyLight.documentFormatting.enabled

Enable document formatting and document range formatting.

  • default: true

rubyLight.documentHighlight.enabled

Enable document highlight.

  • default: true

rubyLight.selectionRanges.enabled

Enable selection ranges.

  • default: true

rubyLight.documentSymbol.enabled

Enable document symbol.

  • default: true

Acknowledgements

This extension is inspired by vscode-ruby.

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