Early Access Program Features News

YAML Code Formatter, chruby, asdf, and More in the Updated RubyMine 2018.2 EAP

Hi everyone,

RubyMine 2018.2 EAP (build 182.3208.25) is now updated and adds some major improvements. Let’s review those.

Download RubyMine 2018.2 EAP

Asdf, chruby, and remote version managers

Support for Ruby version managers has been significantly reworked, which may result in some new issues (please report them if you face any). Nevertheless, the following major features have been added:

  • chruby support [RUBY-14086]
  • asdf support [RUBY-20370]
  • All version managers (RVM, rbenv, asdf, and chruby) are now available in WSL, and also through SSH and other remote connections (Preferences / Settings | Languages & Frameworks | Ruby SDK and Gems | New remote)
  • Rbenv-vars and other plugins now work correctly [RUBY-11581]

YAML code formatter

On top of the previously announced support for YAML anchors and aliases, the new build fulfils the long-standing request for a YAML code formatter.

This means you can now reformat badly structured YAML code the same way you reformat any other code: go to Code | Reformat Code, or press ⌥⌘L / Ctrl+Alt+L:

By default, the IDE reformats all inconsistent code in a file. When a specific code chunk is selected, RubyMine will only reformat the selection, leaving the rest as is:

You can also choose how to fold and indent sequences, align values, and apply other code style options for YAML. Customize this in the settings: Preferences / Settings | Editor | Code Style | YAML:

The formatter will fix code based on your preferences. [RUBY-2185]

Other improvements

Download RubyMine 2018.2 EAP

See the release notes for the full list of improvements, and please report any issues you encounter.

Your RubyMine team

image description