RubyMine 2022.3 EAP2
RubyMine 2022.3 EAP2 is now available. Here are the most notable new features of this build:
Support for example group aliases:
RubyMine recognizes the
fcontext example group aliases and shows such blocks in the Structure tool window (⌘ 7 on macOS or Alt+7 on Windows). Now, you can also run these tests using the gutter icons right in the editor.
Completion of shared context names
In this build, we’ve added support for completion of shared contexts and examples. RubyMine offers completion options from any defined shared contexts and examples.
Filtering of completion options will be coming next, so stay tuned.
Navigation between controllers and request and routing specs
RubyMine links request and routing specs to their respective controllers. Open the necessary request or routing spec and press ⇧ ⌘ T on macOS or Ctrl+Shift+T on Windows to navigate to the controller used as a test subject. You can use the same shortcut to navigate from the controller file to the corresponding spec.
You can always find request specs in the
spec/requests/ folder, and routing specs in the
Clickable URLs in string literals
You can now open URLs directly from your Ruby code. While holding ⌘ (on macOS) or Ctrl (on Windows), click the URL to open it in your default browser.
Alternatively, place the caret next to the desired URL and press ⌘ B on macOS or Ctrl+B on Windows.
Support for the Devise gem
In this release, we’ve added support for the Devise gem as well as several of code assistance features for the Devise methods, including:
RuboCop as an external formatter
Starting with this release, RubyMine can use RuboCop running in server mode as an external formatter.
This feature is experimental and to try it, you need to select the
ruby.external.formatter key in the Registry.
Once the feature is enabled, you can configure the external formatter. Go to Settings / Preferences | Editor | Code Style | Ruby. Then open the Other tab, toggle the Use external formatter checkbox, and select Rubocop in the Select external formatter field.
To reformat a code fragment using RuboCop, select the necessary code in the editor and press ⌥ ⌘ L on macOS or Ctrl+Alt+L on Windows.
If you disable the use of RuboCop as an external formatter, RubyMine will use its internal formatter again. The same is true in cases where the RuboCop gem is not added to your Gemfile.
Updated Ruby template header
We’ve included the
# frozen_string_literal: true comment in the header of the default Ruby file template. Previously, you could edit the template manually in Settings / Preferences, but now everything works out of the box.
When you create a new Ruby file, class, or module, RubyMine will add the comment at the beginning of the file automatically.
Join the Early Access Program
To learn about the newest features as they come out, please follow RubyMine on Twitter. We post product news and tips several times a week.
We encourage you to share your thoughts in the comments below and to create and vote for new features in the issue tracker.
The RubyMine team
Subscribe to Blog updates
Thanks, we've got you!
The RubyMine 2023.3 Early Access Program Is Open!
Hello everyone, The third RubyMine Early Access Program of 2023 is underway! The key change in the first EAP build is an important indexing optimization. By refactoring our code base, we’ve doubled RubyMine’s indexing speed compared to v2023.1. This is particularly noticeable when working wi…
Performance Improvements in RubyMine 2023.1
Hello everybody, The new release is fast approaching, so it’s time to unveil the performance enhancements you can expect from RubyMine 2023.1. Faster code completion When developing and supporting RubyMine, we analyze a great load of anonymized usage data. A lot of recent data pointed to the fact t…
RubyMine 2023.1 EAP5 Is Out!
Hello everyone, RubyMine 2023.1 EAP5 is now available! Below you can find the most notable features in this build. We encourage you to try them out and share your feedback in the comments or in our issue tracker. Migration of Ruby code to the Symbol API In order to improve code insight actions such…
The RubyMine 2023.1 EAP2 Is Out!
The RubyMine 2023.1 Early Access Program recently started and EAP2 is already here! You can get the new build from our website or via the free Toolbox App. In this post, we’ll highlight some of the most important updates included in the new EAP version. Rails 7: support for turbo-rails complet…