RubyMine 2021.2

Aggiunge un migliore completamento del codice e migliora la ricerca e il refactoring.
Luglio 29, 2021
Nuova versione

Funzionalità

  • Ruby and RBS
    • Smarter search and refactoring - Go to declaration, Find usages, and Rename refactoring all now work more precisely for projects using RBS. RubyMine relies on .rbs declarations to define how project entities relate to each other instead of showing all potential usages.
    • Navigation between Ruby and RBS - You can now navigate between the corresponding .rb and .rbs files using new navigation actions.
    • Improved Ruby code assistance:
      • RubyMine uses RBS signatures to determine the types of Ruby elements and to provide more relevant code completion.
      • RubyMine now supports most of the existing RBS entities, including type variables, block parameters, tuple types, proc types and more.
      • For parts of the code that do not have a related RBS type signature, RubyMine will still use its own type inference.
    • New inspections:
      • Access to information stored in .rbs files enables RubyMine to check Ruby code for more potential errors.
      • RubyMine will show a type error if there’s a mismatch between the RBS and Ruby code.
      • This version adds new inspections for .rbs files themselves, including for incorrect code and unresolved references.
      • Added support for running Steep commands using Run anything.
    • Improved RBS editing - This version comes with all the essential features that make RBS code easier to read: syntax highlighting, formatting, automatic indentation, code folding, structure view and commenting with the Ctrl+/ shortcut.
    • Code assistance for RBS files - RubyMine now provides code assistance for working with RBS files: code completion, search for usages, code navigation, rename refactorings and more. You can also create .rbs prototypes and your own live templates for RBS.
  • Editor
    • Updated inspection and quick-fix descriptions - Updated the descriptions for all the inspections and quick-fixes that RubyMine can perform. The updated descriptions explain what changes the inspection suggests and what's the reasoning for them. Some inspections come with examples of usage.
    • Actions on save - Added support for performing specific actions when changes are saved, like reformatting the code. You can find all the actions that will be triggered on save under Preferences / Settings | Tools | Actions on Save.
    • Quick creation of scratch files - In scratch files, you can make notes or draft code outside of the project context. Starting with this release, you can select some code, press Alt+Enter, and choose Create new scratch file from the selection to quickly create a new scratch file containing that code.
  • User Experience
    • Text search in Local History revisions - Local History helps you constantly track all changes made to a project independent of version control. In this release, search functionality has been added to Local History. Now, if you can remember a couple of keywords from the change you are looking for, you can find it more easily.
    • Multiple copyright years - You can now include both the project creation year and the current version year in a project’s copyright notice.
    • Advanced Settings - Added a new node to Preferences | Settings – Advanced Settings. It contains some options for specific use cases conveniently grouped by IDE tool.
    • Browser pages reload on save - The browsers now can automatically reload the pages when you save the changes you made to the corresponding HTML, CSS and JavaScript files. All browsers are supported.
    • Organize tool windows by drag and drop - You can now drag and drop a tool window to the desired place within the main IDE window or in a separate window.
    • New navigation option in Preferences/Settings - It is now possible to navigate back and forth between open sections in Preferences/Settings. To do so, use the arrows in the right-hand corner of the window.
  • Debugger
    • Preview tab in the debugger - The preview tab now works for files that open during debugging: these files will appear one by one in a single preview tab.
  • Terminal
    • New terminal options - Improved the in-built terminal with two new options: the ability to select the cursor shape and support for Use Option as Meta key.
  • Version Control
    • Changes to pre-commit checks - Added new actions that you can perform before a commit: Run Tests, Analyze code and Cleanup. The progress and results of all the pre-commit checks appear in the Commit area without disturbing you with additional modal windows.
    • GPG signature - You can now sign your commits with a GPG key to secure them.
    • Unified behavior for the Show Diff action - RubyMine now displays the difference between the initial and changed files in the editor. However you invoke the Show Diff action, the IDE will open the diff in the editor by default. If you prefer tracking changes in a separate window, you can drag the desired file from the editor. If you do, the IDE will remember this and will open future diffs in a separate window.
  • Space
    • Space job statuses in the Git log - Added icons for Space job statuses in the Log tab of the Git tool window to help you quickly track a job’s progress by just looking at the commits list. Click on an icon to open a popup with the automation info for that job.
    • Mention teammates in reviews - You can now keep your teammates informed by quickly mentioning them in Space reviews right from RubyMine. Type @ followed by the person’s name in the timeline or code comments and then select them from the list.
    • Branch display in code reviews - It is now possible to see the branches related to the selected code review. The Details tab now shows a list of branches that contain the commits made while working on the current issue.
  • Code With Me
    • Synchronized code completion - While using Code With Me, you might want to explain a problem or show your team members different parts of your project. You can achieve this with Force Others to Follow You mode. Those who are following you can see the code completion suggestions that you are using.
  • Web and frameworks
    • Auto-import for require() - The IDE can now add missing import statements as you complete CommonJS modules – required imports will be inserted on code completion.
    • Rename refactoring for React useState hooks - You will no longer need to waste time on refactoring useState values and functions one by one – RubyMine can now rename both for you.
  • Other improvements
    • It’s easier to code with the enabled screen reader mode on Apple macOS. A list of available suggestions for code completion is now read out loud. The content of the selected combo box as well as the combo box lists has been voiced.
    • RubyMine now supports running tests with coverage for projects that use SSH and Vagrant in addition to using local Ruby interpreters.
    • RubyMine will automatically clean up any cache and log directories that were last updated more than 180 days ago. This process doesn’t affect the system settings and plugin directories. You can initiate the process manually via Help | Delete Leftover IDE Directories.
    • RubyMine will now inform you if there is a new version available for download and offer to upgrade to it. You’ll need to have Toolbox App 1.20.8804 or later for this.
    • Improved UI responsiveness and reduced unexpected freezes. Certain operations that require indices off of the UI thread have been moved, which helped get rid of freezes in other situations.
    • Made the dialog that allows you to change the project icon more straightforward.
    • Starting from this version, you can enjoy the fully localized UI of RubyMine in Chinese, Korean and Japanese. Localization is available as non-bundled language pack plugins, which can be easily installed to your IDE.
    • Default Changelists was the name for the node that stores all uncommitted changes. This release renames it to Changes to make it more precise and readable. This update will affect all your new projects.
    • RubyMine will no longer add changelists automatically for Git operations.
    • The oldest version of Git supported by your IDE is now v2.17. The minimum supported version has been increased because 2.17 is the oldest version that still receives security updates.
    • Code With Me recently launched two new relay servers, one on the west coast of the US and another one in South Africa. This has made the ping almost three times faster and it allows teams from those locations to collaborate in their JetBrains IDEs much faster.
    • You can now quickly turn on the Power Save Mode to help you extend battery life on your laptop. Just right-click on the status bar and select Power Save Mode from the context menu.
    • Code completion now works for private npm packages.
    • RubyMine now properly supports the TypeScript syntax used within JSDoc comments in .js files.
    • RubyMine now supports popular classnames and clsx libraries, helping you deal with your CSS class names more efficiently.
    • RubyMine will now auto-complete class names and dynamically evaluated className attribute values in your Tailwind CSS components.
Smarter search and refactoring

RubyMine

Un IDE Ruby on Rails che fornisce strumenti essenziali per gli sviluppatori.

RubyMine è disponibile anche in:

Hai una domanda?

Chatta live con i nostri specialisti di gestione delle licenze di JetBrains ora.