{"id":485749,"date":"2024-06-19T15:37:43","date_gmt":"2024-06-19T14:37:43","guid":{"rendered":"https:\/\/blog.jetbrains.com\/?post_type=webstorm&#038;p=485749"},"modified":"2024-06-19T15:37:47","modified_gmt":"2024-06-19T14:37:47","slug":"webstorm-2024-2-eap2","status":"publish","type":"webstorm","link":"https:\/\/blog.jetbrains.com\/zh-hans\/webstorm\/2024\/06\/webstorm-2024-2-eap2","title":{"rendered":"WebStorm 2024.2 EAP Digest #2: New TypeScript Engine, Ability to Run .ts Files, Git and Markdown Improvements"},"content":{"rendered":"\n<p>We\u2019re halfway through the Early Access Program for WebStorm 2024.2! It\u2019s been a while since we walked you through the latest improvements and features in this release, so it\u2019s about time for an update. Read on to learn about the key changes that made it into the EAP builds in the past few weeks. For more information, check out <a href=\"https:\/\/blog.jetbrains.com\/webstorm\/tag\/webstorm-2024-2\/\">our previous blog posts<\/a>.<\/p>\n\n\n\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. You can also manually download the EAP builds from our <a href=\"https:\/\/www.jetbrains.com\/webstorm\/nextversion\/\" target=\"_blank\" rel=\"noopener\">website<\/a>.<\/p>\n\n\n\n<p><p align=\"center\"><a class=\"jb-download-button\" href=\"https:\/\/www.jetbrains.com\/webstorm\/nextversion\" target=\"_blank\" rel=\"noopener\">\nDOWNLOAD WEBSTORM 2024.2 EAP<\/a><\/p><\/p>\n\n\n\n<p><strong>Important! WebStorm EAP builds are not fully tested and might be unstable.<\/strong><\/p>\n\n\n\n<p>Please try the latest EAP build and share your feedback with us. You can do so using <a href=\"https:\/\/youtrack.jetbrains.com\/issues\/WEB\" target=\"_blank\" rel=\"noopener\">our issue tracker<\/a> or by leaving a comment on this blog post.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key highlights<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Directly run and debug TypeScript files without any configuration<\/h3>\n\n\n\n<p>Since EAP3, WebStorm IDE provides the ability to run TypeScript files directly within the IDE without any additional setup. This feature allows users to run and debug TypeScript files directly within the IDE without any additional setup, utilizing the integrated <a href=\"https:\/\/github.com\/privatenumber\/tsx\" target=\"_blank\" rel=\"noopener\"><code>tsx<\/code><\/a> bundler. You can now execute TypeScript files from different entry points, including the file context menu, the <em>Run widget<\/em>, and the &#8220;<em>Current file<\/em>&#8221; configuration for scratch files. The bundled loader eliminates the need for extra dependencies, though it does come with some limitations, such as requiring Node 18 or higher, no type-checking, and limited support for <code>tsconfig.json<\/code>. You can disable the bundled loader in the configuration settings if it&#8217;s not needed.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1600\" height=\"800\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/06\/WS242-run-ts.gif\" alt=\"\" class=\"wp-image-485750\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">New TypeScript engine now enabled by default<\/h3>\n\n\n\n<p>The <a href=\"https:\/\/blog.jetbrains.com\/webstorm\/2023\/12\/try-the-future-typescript-engine-with-the-webstorm-next-program\/\">WebStorm@next<\/a> program has introduced a new TypeScript engine, to enhance type evaluation and overall performance. This engine uses the TypeScript language server, improving type inference and compatibility. Here is a <a href=\"https:\/\/youtrack.jetbrains.com\/issue\/WEB-61557\" target=\"_blank\" rel=\"noopener\">case in point<\/a>.<br><br>The new engine promises a smoother development experience and ongoing improvements for better support across various frameworks. The new engine has been enabled by default since EAP4. You can toggle it using <em>Settings<\/em> | <em>Languages &amp; Frameworks<\/em> | <em>TypeScript<\/em> &gt; <em>Use types from server<\/em> option:<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1600\" height=\"800\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/06\/WS242-types-from-server-setting.png\" alt=\"\" class=\"wp-image-485677\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Improved commit graph in the <em>Log<\/em> tab<\/h3>\n\n\n\n<p>To improve the visual perception of the commit graph in the <em>Log<\/em> tab of the <em>Git<\/em> tool window, we\u2019ve refined the color encoding and layout of branch lines. Important branch lines now consistently remain on the left-hand side of the graph and retain their designated colors, making them easier to identify and follow.&nbsp;<\/p>\n\n\n\n<p>Previously, commits from important branches were sometimes not correctly laid out or colored because their heads were contained within less important branches. This update ensures that important branches are always clearly visible and consistently colored.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1500\" height=\"600\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/06\/image-9.png\" alt=\"\" class=\"wp-image-481877\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Support for math syntax in Markdown files&nbsp;<\/h3>\n\n\n\n<p>WebStorm can now natively render mathematical expressions in Markdown files. In WebStorm 2024.2, you can use <code>$<\/code> to insert inline math expressions and <code>$$<\/code> for code blocks containing math content.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1600\" height=\"642\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/06\/image-1.png\" alt=\"\" class=\"wp-image-479936\"\/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">Improved <em>Customize Main Toolbar<\/em> dialog<\/h3>\n\n\n\n<p>We\u2019ve redesigned the layout and behavior of the UI elements in the <em>Customize Main Toolbar<\/em> dialog, making it more intuitive and organized. Now, it\u2019s easier to search for, add, and delete actions in the main toolbar.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" loading=\"lazy\" width=\"1600\" height=\"642\" src=\"https:\/\/blog.jetbrains.com\/wp-content\/uploads\/2024\/06\/image-10.png\" alt=\"\" class=\"wp-image-481888\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Other highlights<\/h2>\n\n\n\n<p>We&#8217;ve resolved the following longstanding issues:<\/p>\n\n\n\n<ul>\n<li><a href=\"https:\/\/youtrack.jetbrains.com\/issue\/WEB-64879\" target=\"_blank\" rel=\"noopener\">WEB-64879<\/a> WebStorm won&#8217;t update JavaScript import paths after moving a directory.<\/li>\n\n\n\n<li><a href=\"https:\/\/youtrack.jetbrains.com\/issue\/WEB-59986\" target=\"_blank\" rel=\"noopener\">WEB-59986<\/a> Typescript\/tsx: Code completion does not honor overrides via module augmentation.<\/li>\n<\/ul>\n\n\n\n<p>That\u2019s it for today. For the full list of improvements available in the latest EAP builds, check out the <a href=\"https:\/\/youtrack.jetbrains.com\/articles\/WEB-A-233538494\/WebStorm-2024.2\" target=\"_blank\" rel=\"noopener\">release notes<\/a>. Stay tuned for our next EAP digest!<\/p>\n","protected":false},"author":1474,"featured_media":476272,"comment_status":"closed","ping_status":"closed","template":"","categories":[826],"tags":[8482],"cross-post-tag":[],"acf":[],"_links":{"self":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/webstorm\/485749"}],"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\/1474"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/comments?post=485749"}],"version-history":[{"count":10,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/webstorm\/485749\/revisions"}],"predecessor-version":[{"id":495674,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/webstorm\/485749\/revisions\/495674"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media\/476272"}],"wp:attachment":[{"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/media?parent=485749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/categories?post=485749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/tags?post=485749"},{"taxonomy":"cross-post-tag","embeddable":true,"href":"https:\/\/blog.jetbrains.com\/zh-hans\/wp-json\/wp\/v2\/cross-post-tag?post=485749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}