{"id":255106,"date":"2022-06-13T13:14:59","date_gmt":"2022-06-13T12:14:59","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=ruby&#038;p=255106"},"modified":"2022-08-09T17:16:33","modified_gmt":"2022-08-09T16:16:33","slug":"rubymine-2022-2-eap4","status":"publish","type":"ruby","link":"https:\/\/blog.jetbrains.com\/zh-hans\/ruby\/2022\/06\/rubymine-2022-2-eap4","title":{"rendered":"RubyMine 2022.2 EAP4"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">RubyMine 2022.2 EAP4 is here! Catch up on all the new features by checking out the <\/span><a href=\"https:\/\/blog.jetbrains.com\/ruby\/\"><span style=\"font-weight: 400;\">previous EAP blog posts<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Below you can find the most notable improvements.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">Support for YARD macros<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">We\u2019re continuing to improve our YARD support. Now RubyMine recognizes YARD macro extensions and provides general coding assistance for them.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Use the <\/span><a href=\"https:\/\/www.jetbrains.com\/help\/ruby\/2022.2\/navigating-through-the-source-code.html#go_to_declaration\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Go to declaration<\/span><\/a><span style=\"font-weight: 400;\"> action on a macro reference to jump to the corresponding macro declaration. In the main menu, go to <\/span><b>Navigate | Declaration or Usages <\/b>or press <b>\u2318 B (macOS) \/ Ctrl+B (Windows)<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-255155\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/rm_222_eap4_navigate_to_macros.gif\" alt=\"\" width=\"1984\" height=\"1216\" \/><\/p>\n<p><span style=\"font-weight: 400;\">RubyMine allows you to search for usages of a macro declaration by invoking the <\/span><a href=\"https:\/\/www.jetbrains.com\/help\/ruby\/2022.2\/find-highlight-usages.html#find-usages\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Find usages<\/span><\/a><span style=\"font-weight: 400;\"> action. Press <\/span><b>\u2325 F7 (macOS) \/ <\/b><b>Alt+F7 (Windows)<\/b><span style=\"font-weight: 400;\"> or go to <\/span><b>Edit | Find Usages | Find Usages<\/b><span style=\"font-weight: 400;\"> in the main menu.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-255188\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/rm_222_eap4_macros_find_usages.png\" alt=\"\" width=\"1982\" height=\"1382\" \/><\/p>\n<p><span style=\"font-weight: 400;\">You can use the <\/span><a href=\"https:\/\/www.jetbrains.com\/help\/ruby\/2022.2\/rename-refactorings.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Rename<\/span><\/a><span style=\"font-weight: 400;\"> refactoring on macros by pressing <\/span><b>\u21e7 F6 (macOS) \/ Shift+F6 (Windows)<\/b><i><span style=\"font-weight: 400;\">. <\/span><\/i><span style=\"font-weight: 400;\">Then, specify a new name for the macro and press <\/span><b>Enter<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-255166\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/rm_222_eap4_rename_macros.gif\" alt=\"\" width=\"1716\" height=\"850\" \/><\/p>\n<p><a href=\"https:\/\/www.jetbrains.com\/help\/ruby\/2022.2\/documenting-source-code.html#toggle-rendered-view\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Render the YARD documentation<\/span><\/a><span style=\"font-weight: 400;\"> to check out the macro data in place of the macro reference. RubyMine <\/span><span style=\"font-weight: 400;\">supports any variable substitutions that may be used in the macro data<\/span><span style=\"font-weight: 400;\"> ($1, $2, etc.).<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-255177\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/rm_222_eap4_render_yard.gif\" alt=\"\" width=\"1752\" height=\"1100\" \/><\/p>\n<h2><span style=\"font-weight: 400;\">Keyboard shortcut to change the font size globally<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">We\u2019ve recently introduced a keyboard shortcut that changes the font size across all editors. To increase the font size, press <\/span><b>\u2303\u21e7<\/b><i><span style=\"font-weight: 400;\">. <\/span><\/i><span style=\"font-weight: 400;\">(macOS) or <\/span><b>Alt+Shift+.<\/b> <span style=\"font-weight: 400;\">(Windows). To decrease it, press <\/span><b>\u2303\u21e7<\/b><span style=\"font-weight: 400;\"> (macOS) or <\/span><b>Alt+Shift+, (Windows)<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-255143\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/rm_222_eap4_font_resize.gif\" alt=\"\" width=\"2140\" height=\"1328\" \/><\/p>\n<h2><span style=\"font-weight: 400;\">Run Current File<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">RubyMine uses <\/span><a href=\"https:\/\/www.jetbrains.com\/help\/ruby\/2022.2\/run-debug-configuration.html\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">run\/debug configurations<\/span><\/a><span style=\"font-weight: 400;\"> to run, debug, deploy, and test your code. In this release, we\u2019ve introduced a new feature to run and debug the file that is currently open in the editor.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">You can find the <\/span><i><span style=\"font-weight: 400;\">Current file <\/span><\/i><span style=\"font-weight: 400;\">option on the toolbar. If there are no run\/debug configurations in your project yet, the <\/span><i><span style=\"font-weight: 400;\">Current file <\/span><\/i><span style=\"font-weight: 400;\">option shows up on the toolbar by default. Otherwise, you can find the option in the dropdown menu with run\/debug configurations.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-255121\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/rm_222_eap4_current_file1.png\" alt=\"\" width=\"2136\" height=\"1328\" \/><\/p>\n<p><span style=\"font-weight: 400;\">When you launch the <em>Current file<\/em> configuration, RubyMine automatically determines the run\/debug configuration type. Click the \u2018<\/span><b>Run<\/b>\u2019<span style=\"font-weight: 400;\"> button next to the option to run the most suitable configuration for the file. Alternatively, you can use the dropdown menu options to run or debug your file.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-255132\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/rm_222_eap4_current_file2.png\" alt=\"\" width=\"2380\" height=\"1438\" \/><\/p>\n<h2><span style=\"font-weight: 400;\">New option to control auto-insertion of parentheses<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Now you can choose whether you want RubyMine to automatically insert parentheses on code completion or not. To enable auto-insertion of parentheses, go to <\/span><b>Settings\/Preferences | Editor | General | Code Completion<\/b> <span style=\"font-weight: 400;\">and toggle the <\/span><i><span style=\"font-weight: 400;\">Insert parentheses automatically when applicable<\/span><\/i><span style=\"font-weight: 400;\"> checkbox.<\/span><\/p>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-255110\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2022\/06\/rm_222_eap4_auto-parentheses_option.png\" alt=\"\" width=\"1964\" height=\"1400\" \/><\/p>\n<h2><span style=\"font-weight: 400;\">Join the Early Access Program<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">You can download the latest EAP build <\/span><a href=\"https:\/\/www.jetbrains.com\/ruby\/nextversion\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">from our website<\/span><\/a><span style=\"font-weight: 400;\"> or via the <\/span><a href=\"https:\/\/www.jetbrains.com\/toolbox-app\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Toolbox app<\/span><\/a><span style=\"font-weight: 400;\">. The full list of closed tickets in this EAP build is in the <\/span><a href=\"https:\/\/youtrack.jetbrains.com\/articles\/RUBY-A-220364956\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">release notes<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To learn about the newest features as they come out, please follow <\/span><a href=\"https:\/\/twitter.com\/rubymine\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">RubyMine on Twitter<\/span><\/a><span style=\"font-weight: 400;\">. We post product news and tips several times a week.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">We encourage you to share your thoughts in the comments below and to create and vote for new features in the <\/span><a href=\"https:\/\/youtrack.jetbrains.com\/issues\/ruby\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">issue tracker<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><i><span style=\"font-weight: 400;\">Happy developing!<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">The RubyMine team<\/span><\/p>\n\n\n<p><\/p>\n","protected":false},"author":1310,"featured_media":247816,"comment_status":"closed","ping_status":"closed","template":"","categories":[826],"tags":[6986,600],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/ruby\/255106"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/ruby"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/ruby"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1310"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=255106"}],"version-history":[{"count":6,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/ruby\/255106\/revisions"}],"predecessor-version":[{"id":255775,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/ruby\/255106\/revisions\/255775"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/247816"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=255106"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=255106"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=255106"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=255106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}