Saturday, April 27, 2024
HomeRuby On RailsRubyMine 2023.1: Rails 7 and Ruby 3.2 Assist, Improved Efficiency, Refreshed New...

RubyMine 2023.1: Rails 7 and Ruby 3.2 Assist, Improved Efficiency, Refreshed New UI, and Extra!


The discharge of RubyMine 2023.1 is now accessible!

You may get the brand new construct from our web site or by way of the free Toolbox App.

The Ruby and Rails IDE has been upgraded to help Rails 7 and Ruby 3.2 with extra enhancements, together with a refreshed new UI, sooner code completion, decreased reminiscence utilization, higher gem synchronization on WSL, less complicated navigation, and enhanced integration with Docker. Furthermore, customers can now effortlessly work with shared contexts and examples in RSpec, and way more.

Listed below are some highlights of the important thing options. For an in depth description of this replace, please go to our What’s New web page.

Ruby and Rails

Assist for turbo-rails completion in Rails 7

Are you presently utilizing or planning to improve to Rails 7? With the most recent launch, RubyMine’s autocomplete function now helps Rails 7’s turbo-rails strategies, enabling you to jot down Ruby code sooner and extra effectively.

Completion of subject parameters in ActiveRecord strategies

We’ve included code completion help choices for sure CRUD strategies of the ActiveRecord class. RubyMine will now present options for argument completion for the next ActiveRecord strategies:

  • Class ActiveRecord::Inheritance::ClassMethods
    Strategies: new
  • Class ActiveRecord::Persistence::ClassMethods
    Strategies: create, create!, replace, replace!
  • Class ActiveRecord::Persistence
    Strategies: replace, replace!, update_columns, update_attributes, update_attributes!
  • Class ActiveRecord::Associations::CollectionAssociation
    Strategies: construct
  • Class ActiveRecord::Associations::CollectionProxy
    Strategies: construct, create, create!
  • Class ActiveRecord::Relation

Strategies: new, create, create!, first_or_create, first_or_create!, first_or_initialize, create_or_find_by, create_or_find_by!, replace, replace!, construct

Please observe that a few of these strategies is probably not outlined in sure variations of Rails.

Efficiency

Code completion velocity

We analyzed a substantial amount of nameless consumer information and glued a significant efficiency challenge following the evaluation outcomes. This virtually doubled RubyMine’s code completion velocity.

Reminiscence consumption decreased

We mounted a number of points that prompted extreme reminiscence consumption in RubyMine. When working with bigger initiatives, the IDE reminiscence footprint is now considerably smaller.

Gem synchronization on WSL

The brand new model of RubyMine comes with a built-in syncing instrument optimized for engaged on WSL. This instrument changed rsync, beforehand used for file transferring throughout gem synchronization. The brand new resolution is sort of 10 instances sooner than the earlier implementation.

New UI updates

Editor window zoom

Now you can zoom into and out of the RubyMine editor window totally, adjusting the dimensions of all UI parts without delay. This may be performed by deciding on View from the principle menu, then selecting Look and adjusting the IDE’s scaling. Alternatively, you probably have a touchpad or touchscreen, you’ll be able to zoom out and in instantly within the editor window.

To simplify the method of calling these actions, you’ll be able to assign customized shortcuts to them within the Keymap part of the Settings menu. Merely navigate to the Principal Menu, then View, and at last Look.

Configuration choice to arrange Actions on Save for brand new initiatives

In RubyMine 2023.1, there’s a new configuration setting that means that you can outline which Actions on Save for brand new initiatives. 
To entry this setting, go to File/ New Tasks Setup / Preferences For New Tasks / Instruments / Actions on Save. From there, you’ll be able to specify which actions needs to be mechanically executed when adjustments are saved in your initiatives.

Hidden toolbar in Zen and Distraction Free modes within the new UI

The looks and consumer interface of the IDE have been improved with the most recent replace. When the Zen and Distraction Free modes are activated, the highest toolbar is hidden.

Vertical cut up for instrument home windows

With the up to date UI, you’ll be able to simply manage your workspace by splitting the instrument window space. To maneuver a instrument window to the decrease part, drag its icon from the sidebar and drop it beneath the separator. Alternatively, you’ll be able to right-click on the icon to entry the context menu after which choose the Transfer to choice to relocate it.

Search In all places is enabled with ML-powered seek for lessons

We’re making ongoing efforts to include machine-learning rating into the Search In all places (Double ⇧ / Double Shift) performance to ship extra exact and related search outcomes. The machine learning-powered sorting algorithm is now enabled by default within the Courses tab, in addition to within the Actions and Recordsdata tabs.

Configure Tailwind CSS

On this construct, we’ve added help for all configuration choices, reminiscent of configuring customized class title completions below the `classAttributes` choice and even experimental ones like tailwindCSS.experimental.configFile.

You’ll find and arrange these configuration choices below Preferences / Settings | Languages & Frameworks | Model Sheets | Tailwind CSS.

RSpec

Improved navigation from topic to topic definition in RSpec

We’ve enhanced navigation inside RSpec to allow quick access to in-scope worth definitions. Now you can navigate to the closest in-scope worth definition by utilizing ⌘Click on (macOS) or Ctrl+Click on (Home windows) on a topic reference.

Run shared_examples_for and shared_context from the gutter

From this launch onwards, using shared_examples_for and shared_contexts has develop into less complicated – it’s now potential to execute them utilizing gutter icons.

Fluent interface descriptions formatting for RSpec 3

The built-in RubyMine formatter now helps fluent interface descriptions for RSpec 3. Whereas the exams are working, they’ll nonetheless have the default placeholder description. As quickly because the exams are completed, these descriptions are changed with the precise instance names.

Docker

Merged logs from all Docker-compose containers

The Dashboard tab within the Docker-compose node has been enhanced to consolidate logs from all Docker-compose containers right into a centralized location, permitting for real-time updates.

Assist for Azure Container Registry

Connecting to Azure Container Registry is now a lot less complicated. 
To set it up, navigate to the Docker Registry part below Settings/Preferences | Construct, Execution, Deployment | Docker. Then, within the Docker Registry enter subject, choose the Docker V2 choice.

New setting to use the :z mount choice to bind volumes on SELinux

You may add the :z configuration flag to Docker bind mounts. This lets you join volumes to Docker containers on SELinux workstations.

These are essentially the most notable updates launched in RubyMine 2023.1. Take a look at the What’s New web page or confer with the launch notes for extra complete particulars in regards to the new model.

You may obtain RubyMine 2023.1 from our web site or by way of the Toolbox App.

We’d love to listen to extra about your expertise with RubyMine. Schedule a 40–60 minute name with us to debate and reply your questions!

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

We invite you to share your ideas within the feedback beneath and counsel and vote for brand new options within the challenge tracker.

Comfortable creating!

The RubyMine staff



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments