
We’ve improved type inference for unknown classes, so RubyMine will now look up the types for methods from all known ancestors from Ruby, not just Object. If there was no corresponding RBS signature, we could only retrieve the types of methods from Object. Previously, we only provided types for an object if its class had an RBS signature. The second 2022.2 EAP build is now available! Here are the build highlights: Improved support for retrieving types from unknown classes in RBS We encourage you to share your thoughts in the comments below and to create and vote for new features in the issue tracker. We post product news and tips several times a week. To learn about the newest features as they come out, please follow RubyMine on Twitter.
RUBYMINE EAP FULL
The full list of closed tickets in this EAP build is in the release notes.
RUBYMINE EAP DOWNLOAD
You can download the latest EAP build from our website or via the Toolbox app.
RUBYMINE EAP CODE
To enable auto-insertion of parentheses, go to Settings/Preferences | Editor | General | Code Completion and toggle the Insert parentheses automatically when applicable checkbox. Now you can choose whether you want RubyMine to automatically insert parentheses on code completion or not. New option to control auto-insertion of parentheses Alternatively, you can use the dropdown menu options to run or debug your file. Click the ‘ Run’ button next to the option to run the most suitable configuration for the file. When you launch the Current file configuration, RubyMine automatically determines the run/debug configuration type. Otherwise, you can find the option in the dropdown menu with run/debug configurations. If there are no run/debug configurations in your project yet, the Current file option shows up on the toolbar by default. You can find the Current file option on the toolbar. In this release, we’ve introduced a new feature to run and debug the file that is currently open in the editor. RubyMine uses run/debug configurations to run, debug, deploy, and test your code. To decrease it, press ⌃⇧ (macOS) or Alt+Shift+, (Windows). We’ve recently introduced a keyboard shortcut that changes the font size across all editors. Keyboard shortcut to change the font size globally RubyMine supports any variable substitutions that may be used in the macro data ($1, $2, etc.). Render the YARD documentation to check out the macro data in place of the macro reference. Then, specify a new name for the macro and press Enter. You can use the Rename refactoring on macros by pressing ⇧ F6 (macOS) / Shift+F6 (Windows). Press ⌥ F7 (macOS) / Alt+F7 (Windows) or go to Edit | Find Usages | Find Usages in the main menu. RubyMine allows you to search for usages of a macro declaration by invoking the Find usages action. In the main menu, go to Navigate | Declaration or Usages or press ⌘ B (macOS) / Ctrl+B (Windows). Use the Go to declaration action on a macro reference to jump to the corresponding macro declaration. Now RubyMine recognizes YARD macro extensions and provides general coding assistance for them. We’re continuing to improve our YARD support. īelow you can find the most notable improvements. RubyMine 2022.2 EAP4 is here! Catch up on all the new features by checking out the previous EAP blog posts.
