RubyMine 2022.2

Melhora o suporte para Rails, RBS e YARD.
Julho 27, 2022
Nova versão

Recursos

  • Rails
    • Clickable links in Rails server logs - Rails developers can now click links for Controller#action, View, and Route references to navigate to the corresponding files.
    • Find, complete, and navigate Rails URLs - RubyMine now supports searching for Rails URLs. Simply type /url in the Search Everywhere dialog to find and navigate to a file that contains the desired URL. Added auto-completion for HTTP requests. This means you can auto-complete Rails URLs and navigate to their related Routes. The completion suggestions also display the types of available HTTP requests.
    • Endpoints tool window - The newly added Endpoints tool window provides an aggregated view of the client and server APIs used in your project. The tool window can assist you when developing microservices and for backend-frontend communication.
    • Better completion for HTML tags in ERB files - You no longer need to manually type opening HTML tags when you edit .html.erb files. Just start typing the name of an HTML tag, and RubyMine will provide the proper autocomplete suggestion. Press Tab to autocomplete the tag and continue editing things inside the tag.
  • RBS
    • Inline visibility modifiers - Starting with this version, RubyMine’s code insight now checks inline public and private visibility modifiers to determine the visibility of attribute and method declarations. Per-method visibility modifiers have also been added to the structure view.
    • Retrieve types from unknown classes - Previously, types for an object were only provided if its class had an RBS signature. If there was no corresponding RBS signature, you could only retrieve the types of methods from Object. The type inference for unknown classes has been improved, so RubyMine will now look up the types for methods from all known ancestors from Ruby, not just Object.
  • Debugger
    • Improved RubyMine’s debugger to make it more robust for Ruby 3 or later. You should now be able to debug your code written in Ruby 3 or later without any major issues while using all of the features provided in the GUI, such as stepping through the code, evaluating expressions, and more.
  • YARD
    • Code insight for YARD macros - Starting with this release, RubyMine recognizes YARD macro extensions and provides general coding assistance for them.
      • Use the Go to declaration action on a macro reference to jump to the corresponding macro declaration.
      • Search for usages of a macro declaration by invoking the Find usages action.
      • Rename every usage of a macro by pressing Shift+F6.
      • Note that RubyMine does not support the “attach” macros due to possible performance issues.
    • Improved rendering of YARD docs.
  • Various new features
    • Run current file - RubyMine uses run/debug configurations to run, debug, deploy, and test your code. In this release, a new feature has been added to run and debug the file that is currently open in the editor.
    • Code insight for pattern-matched local variables - Code insight features, such as navigation between entities, the Rename refactoring, and Find Usages, now work for pattern-matched local variables.
    • Exit line comment continuation - This version adds a new option to exit line comment continuation by pressing Enter. Use Shift+Enter to insert an empty comment line.
    • Change the font size globally - Added a keyboard shortcut that changes the font size across all editors. Press Alt+Shift+. to increase the font size and press Alt+Shift+, to decrease it.
    • Edit interpreter names - If you use different Rubies for different projects, you can now edit interpreter names in the Ruby SDK settings. This feature helps you make various SDKs human-readable and avoid confusion when choosing between them.
    • Open Gemfile from a RuboCop suggestion - You can now open your Gemfile and add the RuboCop gem right from the Notifications tool window. When you see the Set up RuboCop suggestion in the Notifications tool window, click Add.
    • Manage auto-insertion of parentheses - You can now choose whether you want RubyMine to automatically insert parentheses on code completion or not.
  • JavaScript
    • Support for Angular standalone components - Added support for Angular standalone components. RubyMine now properly recognizes components, directives, and pipes marked as standalone: true.
    • Updates for Vue - Improved support for Vue 3. For example, it now understands type narrowing in v-if/else directives.
    • TypeScript 4.7 support - RubyMine now comes bundled with TypeScript 4.7, supporting new language features like moduleSuffixes and ESM in Node.js. It will automatically insert the .js extension to the import statement if module is set to node16 or nodenext in your tsconfig.json file. Additionally, RubyMine now supports the typesVersions field in package.json files.
Clickable links in Rails server logs

RubyMine

IDE Ruby on Rails que fornece ferramentas essenciais para desenvolvedores.

RubyMine também está disponível em:

Tem alguma pergunta?

Chat ao vivo com nossos especialistas de licenciamento de JetBrains.