Tuesday, March 14, 2023
HomeRuby On RailsRubyMine 2022.3 EAP2 | The RubyMine Weblog

RubyMine 2022.3 EAP2 | The RubyMine Weblog


Early Entry Program

RubyMine 2022.3 EAP2 is now obtainable. Listed below are essentially the most notable new options of this construct:

RSpec

Assist for instance group aliases: xdescribe, xcontext, fdescribe, fcontext

RubyMine acknowledges the xdescribe, xcontext, fdescribe, and fcontext instance group aliases and exhibits such blocks within the Construction instrument window (⌘ 7 on macOS or Alt+7 on Home windows). Now, you can too run these checks utilizing the gutter icons proper within the editor.

Completion of shared context names

On this construct, we’ve added help for completion of shared contexts and examples. RubyMine presents completion choices from any outlined shared contexts and examples.

Filtering of completion choices will likely be coming subsequent, so keep tuned.

Navigation between controllers and request and routing specs

RubyMine hyperlinks request and routing specs to their respective controllers. Open the mandatory request or routing spec and press ⇧ ⌘ T on macOS or Ctrl+Shift+T on Home windows to navigate to the controller used as a take a look at topic. You should utilize the identical shortcut to navigate from the controller file to the corresponding spec.

You possibly can all the time discover request specs within the spec/requests/ folder, and routing specs within the spec/routing/ folder.

Different enhancements

Clickable URLs in string literals

Now you can open URLs straight out of your Ruby code. Whereas holding (on macOS) or Ctrl (on Home windows), click on the URL to open it in your default browser.

Alternatively, place the caret subsequent to the specified URL and press ⌘ B on macOS or Ctrl+B on Home windows.

Assist for the Devise gem

On this launch, we’ve added help for the Devise gem in addition to a number of of code help options for the Devise strategies, together with:

RuboCop as an exterior formatter

Beginning with this launch, RubyMine can use RuboCop working in server mode as an exterior formatter.

This function is experimental and to attempt it, it’s essential to choose the ruby.exterior.formatter key within the Registry.

As soon as the function is enabled, you possibly can configure the exterior formatter. Go to Settings / Preferences | Editor | Code Model | Ruby. Then open the Different tab, toggle the Use exterior formatter checkbox, and choose Rubocop within the Choose exterior formatter subject.

To reformat a code fragment utilizing RuboCop, choose the mandatory code within the editor and press ⌥ ⌘ L on macOS or Ctrl+Alt+L on Home windows.

When you disable using RuboCop as an exterior formatter, RubyMine will use its inside formatter once more. The identical is true in instances the place the RuboCop gem shouldn’t be added to your Gemfile.

Up to date Ruby template header

We’ve included the # frozen_string_literal: true remark within the header of the default Ruby file template. Beforehand, you could possibly edit the template manually in Settings / Preferences, however now the whole lot works out of the field.

Whenever you create a brand new Ruby file, class, or module, RubyMine will add the remark originally of the file routinely.

Be part of the Early Entry Program

You possibly can obtain the most recent EAP construct from our web site or by way of the Toolbox app. The complete record of closed tickets on this EAP construct is offered within the launch notes.

To be taught in regards to the latest options as they arrive out, please comply with RubyMine on Twitter. We publish product information and suggestions a number of instances every week.

We encourage you to share your ideas within the feedback beneath and to create and vote for brand spanking new options within the challenge tracker.

Pleased creating!

The RubyMine workforce



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments