Lightweight VSCode extension for Ruby.
Install via 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.
Displays RuboCop offenses and provides Quick Fix command for autocorrection.
Run "Format Document" command or enable "Format On Save" in the settings to autocorrect RuboCop offenses.
Hover control keywords to highlight the corresponding keywords.
Run "Expand Selection" command to select appropriate ranges.
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:
- instance method
- singleton method (a.k.a. class method)
- attribute (attr_accessor, attr_reader, and attr_writer)
- Add Ruby file extension patterns
- Add Ruby file name patterns
- Add indentation rules
Enable document formatting and document range formatting.
Enable document highlight.
Enable selection ranges.
Enable document symbol.
This extension is inspired by vscode-ruby.