{"id":112712,"date":"2021-02-03T15:05:58","date_gmt":"2021-02-03T14:05:58","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=webstorm&#038;p=112712"},"modified":"2021-02-03T15:05:58","modified_gmt":"2021-02-03T14:05:58","slug":"webstorm-2021-1-eap-2","status":"publish","type":"webstorm","link":"https:\/\/blog.jetbrains.com\/zh-hans\/webstorm\/2021\/02\/webstorm-2021-1-eap-2","title":{"rendered":"WebStorm 2021.1 EAP #2 Is Here With a Lot of Quality Improvements"},"content":{"rendered":"<p>WebStorm 2021.1 EAP build #2 is now available! To catch up on all the new features, check out our <a href=\"https:\/\/blog.jetbrains.com\/webstorm\/tag\/webstorm-2021-1\/\">previous EAP blog posts<\/a>.<\/p>\n<\/p>\n<p>If you\u2019re not familiar with our Early Access Program, check out <a href=\"https:\/\/blog.jetbrains.com\/zh-hans\/webstorm\/2020\/09\/webstorm-eap\">this blog post<\/a> where we explain what the EAP is and why you should take part in it. TL;DR: aside from helping steer development in the direction you want it to go, you could also get a free WebStorm license.<\/p>\n<p>The <a href=\"https:\/\/www.jetbrains.com\/toolbox\/app\/\" target=\"_blank\" rel=\"noopener\">Toolbox App<\/a> is the easiest way to get the EAP builds and keep both your stable and EAP versions up to date. Or you can manually download the EAP builds from our <a href=\"https:\/\/www.jetbrains.com\/webstorm\/nextversion\/\" target=\"_blank\" rel=\"noopener\">website<\/a>.<\/p>\n<p align=\"center\"><a class=\"jb-download-button\" href=\"https:\/\/www.jetbrains.com\/webstorm\/nextversion\" target=\"_blank\" rel=\"noopener\">DOWNLOAD WEBSTORM 2021.1 EAP<\/a><\/p>\n<p><strong>Important! WebStorm EAP builds are not fully tested and might be unstable.<\/strong><\/p>\n<p>Below you can find the most notable improvements available in WebStorm 2021.1 EAP #2. Please try them out and <a href=\"https:\/\/youtrack.jetbrains.com\/issues\/WEB\" target=\"_blank\" rel=\"noopener\">share your feedback<\/a> with us.<\/p>\n<h2 id=\"maximize_editor_tabs_in_the_split_view\">Maximize editor tabs in the split view<\/h2>\n<p>Working in the split view is now more convenient. Whenever you <a href=\"https:\/\/blog.jetbrains.com\/zh-hans\/webstorm\/2020\/09\/webstorm-2020-3-eap-1#split_the_editor_with_drag_and_drop\">split the editor<\/a>, you can double-click the tab you\u2019re working with to maximize the editor window for it. To bring that tab back to its original size, simply double-click it again.<\/p>\n<p><img decoding=\"async\" alt=\"maximize-tab-in-split-view\" width=\"600\" data-gif-src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2021\/02\/maximize-tab-in-split-view.gif\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2021\/02\/maximize-tab-in-split-view.png\"\/><\/p>\n<h2 id=\"suppress_inspections_for_javascript_and_typescript_files\">Suppress inspections for JavaScript and TypeScript files<\/h2>\n<p>To check the quality of your code, WebStorm runs dozens of inspections as you type. There can be times when you don\u2019t need a specific inspection to be run. You can turn off individual inspections for your entire project or on a more granular level, for example, for a statement or a class. With v2021.1, you can now also turn off inspections for JavaScript and TypeScript on a file-by-file basis.<\/p>\n<p>To suppress an inspection for a file, place the caret at the problem in your code and press <em>Alt+Enter<\/em>. Then click the arrow next to the inspection you want to suppress and select <em>Suppress for file<\/em>. This will add a <em>noinspection<\/em> comment to the beginning of your JavaScript or TypeScript file.<\/p>\n<p><img decoding=\"async\" alt=\"suppress-inspection-for-file\" width=\"600\" data-gif-src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2021\/02\/suppress-inspection-for-file.gif\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2021\/02\/suppress-inspection-for-file.png\"\/><\/p>\n<p>To learn more about working with inspections, check out <a href=\"https:\/\/www.jetbrains.com\/help\/webstorm\/disabling-and-enabling-inspections.html\" target=\"_blank\" rel=\"noopener\">our documentation<\/a>.<\/p>\n<h2 id=\"customize_external_dependencies_in_the_search_scope\">Customize external dependencies in the search scope<\/h2>\n<p>It\u2019s now possible to configure how the IDE will treat external dependencies when searching for a text string within a project. Open <em>Find in Files<\/em> by pressing <em>Cmd\/Ctrl+Shift+F<\/em>, select <em>Scope<\/em>, and click the \u201c\u2026\u201d button next to the filters field. This will open the <em>Scopes<\/em> window, where you can see whether <em>External Dependencies<\/em> are included or excluded from the scope. You can change their status using the buttons on the right.<\/p>\n<p><img decoding=\"async\" alt=\"customize-external-dependencies-ws\" width=\"600\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2021\/02\/customize-external-dependencies-ws.png\"\/><\/p>\n<p>Those are the biggest highlights. This build also comes with some smaller but still important improvements such as:<\/p>\n<ul>\n<li>\nYou can now use a shortcut to select all output in the built-in terminal. For this, go to <em>Preferences\/Settings | Keymap<\/em>, look for <em>Select All<\/em> under the <em>Terminal<\/em> section there, and assign a shortcut of your choice to this action. Alternatively, you can use the <em>Select All <\/em>action available within the right-click menu of the <em>Terminal<\/em> tool window (<a href=\"https:\/\/youtrack.jetbrains.com\/issue\/IDEA-117484\" target=\"_blank\" rel=\"noopener\">IDEA-117484<\/a>).\n<\/li>\n<li>\nWhenever you fail to find anything in the <em>Shift+Shift<\/em> popup, you\u2019ll now see the <em>Find in File<\/em>s link right in the popup. Click it to continue looking for text strings within a project and using different scopes (<a href=\"https:\/\/youtrack.jetbrains.com\/issue\/IDEA-256078\" target=\"_blank\" rel=\"noopener\">IDEA-256078<\/a>).\n<\/li>\n<li>\nIt is now possible to copy a file from another branch in the <a href=\"https:\/\/www.jetbrains.com\/help\/webstorm\/comparing-file-versions.html\" target=\"_blank\" rel=\"noopener\">Compare with branch<\/a> dialog. To do so, select the file you want to copy and click the new down-arrow button next to <em>Show diff<\/em> (<a href=\"https:\/\/youtrack.jetbrains.com\/issue\/IDEA-156485\" target=\"_blank\" rel=\"noopener\">IDEA-156485<\/a>).\n<\/li>\n<\/ul>\n<p>For the full list of the latest enhancements available in WebStorm 2021.1 EAP #2, check out the <a href=\"https:\/\/confluence.jetbrains.com\/display\/WI\/WebStorm+211.5538.3+Release+Notes\" target=\"_blank\" rel=\"noopener\">release notes<\/a>.<\/p>\n<p><em>The WebStorm team<\/em><\/p>\n","protected":false},"author":989,"featured_media":112713,"comment_status":"closed","ping_status":"closed","template":"","categories":[826],"tags":[6435],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/webstorm\/112712"}],"collection":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/webstorm"}],"about":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/types\/webstorm"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/users\/989"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=112712"}],"version-history":[{"count":6,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/webstorm\/112712\/revisions"}],"predecessor-version":[{"id":113231,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/webstorm\/112712\/revisions\/113231"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/112713"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=112712"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=112712"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=112712"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=112712"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}