{"id":496685,"date":"2024-07-30T13:54:52","date_gmt":"2024-07-30T12:54:52","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=go&#038;p=496685"},"modified":"2024-07-30T15:17:24","modified_gmt":"2024-07-30T14:17:24","slug":"goland-2024-2-release-candidate-is-out","status":"publish","type":"go","link":"https:\/\/blog.jetbrains.com\/zh-hans\/go\/2024\/07\/30\/goland-2024-2-release-candidate-is-out","title":{"rendered":"GoLand 2024.2 Release Candidate is Out!"},"content":{"rendered":"\n<p>GoLand 2024.2 Release Candidate is available now!<\/p>\n\n\n\n<p>You can get this build via the <a href=\"https:\/\/www.jetbrains.com\/toolbox\/app\/\" target=\"_blank\" rel=\"noopener\">Toolbox App<\/a> or download it from our website. You can also download the build from inside GoLand by going to <em>Settings<\/em> | <em>Appearance &amp; Behavior<\/em> | <em>System Settings<\/em> | <em>Updates <\/em>and selecting <em>Check IDE updates for: Early Access Program.<\/em><\/p>\n\n\n\n<p align=\"center\">\n    <a class=\"jb-download-button\" href=\"https:\/\/www.jetbrains.com\/go\/nextversion\/\" target=\"_blank\" rel=\"noopener\">      \n        Download GoLand Release Candidate\n    <\/a>\n<\/p>\n\n\n\n<p>Please note that to use GoLand 2024.2 RC, you need to have an active subscription or start a 30-day trial.<\/p>\n\n\n\n<p>The Release Candidate provides all the new features and improvements already announced during our current EAP cycle and expected in the major 2024.2 release.<\/p>\n\n\n\n<p>In this post, we will highlight only the most significant and anticipated enhancements. For more updates, stay tuned and wait for the release of our \u201cWhat\u2019s New\u201d.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The new <em>Add method to interface and all its implementations<\/em> refactoring<\/h3>\n\n\n\n<p>GoLand 2024.2 introduces the highly anticipated <em>Add method to interface and all its implementations<\/em> refactoring! This quick-fix allows you to add a new method to an interface and all its implementations in one action.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1280\" height=\"720\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/07\/GIF-refactoring-1.gif\" alt=\"GoLand Add method to interface and all its implementations demo\" class=\"wp-image-496708\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Reverse type inference support<\/h3>\n\n\n\n<p>GoLand now fully supports reverse type inference, and we\u2018ve added reverse type inference to the <em>Type Info<\/em> action.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"2622\" height=\"850\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/07\/Screenshot-2024-07-30-at-16.16.26.png\" alt=\"\" class=\"wp-image-497698\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Show inferred types<\/h3>\n\n\n\n<p>GoLand now makes it easier to read complicated code samples. It displays instantiated types in the quick documentation pop-up for call expressions.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1600\" height=\"604\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/07\/Show-inferred-concrete-types.png\" alt=\"\" class=\"wp-image-496735\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><em>Replace &#8216;<code>if<\/code>&#8216; with &#8216;<code>switch<\/code>&#8216;<\/em><\/h3>\n\n\n\n<p>We are always working to help you write better code. One way we\u2019ve tried to achieve this in the upcoming release is the new <em>Replace \u2018<code>if<\/code>\u2019 with \u2018<code>switch<\/code>\u2019 <\/em>intention action, which helps make your code significantly easier to read, change, and maintain.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1650\" height=\"900\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/07\/SCR-20240708-nmnh.png\" alt=\"\" class=\"wp-image-496746\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Setting transfer from VS Code<\/h3>\n\n\n\n<p>You can now migrate your settings from VS Code to GoLand. When you launch the IDE for the first time, you\u2019ll see the <em>Import Settings<\/em> dialog with a list of settings from other IDEs found on your machine.<\/p>\n\n\n\n<p>After making your selections and clicking <em>Import Settings,<\/em> your settings from VS Code will be successfully migrated.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1504\" height=\"1216\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/07\/Screenshot-2024-07-09-at-13.36.31.png\" alt=\"\" class=\"wp-image-496757\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Preview option for <em>Search Everywhere<\/em><\/h3>\n\n\n\n<p>The <em>Search Everywhere<\/em> dialog now includes an option to preview the codebase elements you\u2019re searching for. Enabling this feature through the <em>Preview <\/em>icon on the dialog\u2019s toolbar will cause a preview pane to appear under the search results, offering additional context and making it easier to navigate through your project.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1708\" height=\"928\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/07\/preview-search-everywhere-1.gif\" alt=\"\" class=\"wp-image-496768\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">UX improvements for users from China, Korea, and Japan&nbsp;<\/h3>\n\n\n\n<p><strong>Bundled localization packages for Chinese, Korean, and Japanese<\/strong><\/p>\n\n\n\n<p>Go developers around the world naturally benefit from using GoLand in their native language.&nbsp;<\/p>\n\n\n\n<p>To improve the IDE experience for native speakers of Chinese, Korean, and Japanese, we\u2019ve now bundled the support for these languages.<\/p>\n\n\n\n<p><strong>GOPROXY<\/strong><strong> for China<\/strong><\/p>\n\n\n\n<p>GoLand 2024.2 simplifies setup for users in mainland China. We\u2019ve automated GOPROXY preselection for this region, reducing the steps required for configuration. If you use custom proxies, you can disable this automatic switching in <em>Settings <\/em>|<em> Advanced Settings<\/em>.&nbsp;<\/p>\n\n\n\n<p>We need your feedback to make the new features even better. Share your thoughts on <a href=\"https:\/\/twitter.com\/GoLandIDE\" target=\"_blank\" rel=\"noopener\">X<\/a> (formerly Twitter), leave your comments below, create an issue in <a href=\"https:\/\/youtrack.jetbrains.com\/issues\/GO?_gl=1*unwi42*_ga*NTExMjM0MDExLjE2OTgzMTE0MzU.*_ga_9J976DJZ68*MTY5OTYxNjU5Ni43NC4xLjE2OTk2MTc3NTAuMjQuMC4w&amp;_ga=2.119547016.1404756499.1699263915-511234011.1698311435&amp;_gac=1.190142809.1699609333.Cj0KCQiAo7KqBhDhARIsAKhZ4uhow2ahdziuAOr9_o7msqFs_Fw1wbudhCeQSRS1ABFh37QhrSq8ersaAkfeEALw_wcB\" target=\"_blank\" rel=\"noopener\">our tracker<\/a>, or drop us a message in the <a href=\"https:\/\/invite.slack.golangbridge.org\/\" target=\"_blank\" rel=\"noopener\">#goland-gophers<\/a> Slack channel.&nbsp;Happy developing!<\/p>\n\n\n\n<p><\/p>\n","protected":false},"author":1455,"featured_media":496686,"comment_status":"closed","ping_status":"closed","template":"","categories":[],"tags":[6449],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/496685"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/go"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/1455"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=496685"}],"version-history":[{"count":9,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/496685\/revisions"}],"predecessor-version":[{"id":497710,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/go\/496685\/revisions\/497710"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/496686"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=496685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=496685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=496685"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=496685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}