WebStorm 2020.1 EAP #4: LightEdit Mode, an Option to Update All Jest Snapshots for a File, and More

Posted on by Ekaterina Ryabukha

WebStorm 2020.1 EAP build #4 is now available!

If you’re unfamiliar with our Early Access Program or if you want to catch up on all the new features, check out our previous EAP blog posts.

The Toolbox App is the easiest way to get the EAP builds and keep both your stable WebStorm version and any EAP versions up to date. Or you can download the EAP builds from our website. You can also choose to be notified right from the IDE when a new EAP build is available: go to Preferences/Settings | Appearance & Behavior | System Settings | Updates and select Automatically check updates for Early Access Program.

DOWNLOAD WEBSTORM 2020.1 EAP

Important! WebStorm EAP builds are not fully tested and might be unstable.

Here are some of the highlights of WebStorm 2020.1 EAP #4 (build 201.5259.16). For the full list of issues fixed in this update, see the release notes.

Using WebStorm as a simple text editor

With the new LightEdit Mode, you can open a file in the text editor window without creating or loading a project.

To try this new functionality out, you will first need to create a command-line launcher from Tools | Create Command-line Launcher as described here. If you’re using the Toolbox App, the steps will be slightly different.

Next, run webstorm file in your terminal. For more detailed instructions on how to open a file, see this web help section.

If WebStorm has already been launched, the file will be opened in it. If WebStorm is not yet running, the file will be opened in LightEdit Mode instead.

light-edit-mode

When you are ready to switch from editing a single file in this new mode to working on the entire project, you can do so by selecting File | New in the main menu or using the Manage Projects action if you have a shortcut assigned to it (Preferences/Settings | Keymap | Manage Projects).

We’re still working to improve this functionality, so, if you have any ideas about how to make it better, please share them in the comments below.

Updating all Jest snapshots in a file

If you’re doing snapshot testing with Jest, you may have already noticed that WebStorm lets you update a snapshot with a single click. However, previously there was no option for updating multiple snapshots at once. This meant that if you had more than one failed test, you had to rerun them multiple times, which wasn’t very convenient. To make this easier, we’ve added a new option for updating multiple snapshots.

update-multiple-failed-snapshots

New intention for inferring parameters from usages

In WebStorm 2020.1, you can find a new intention that lets you quickly infer parameter type annotations, or JSDoc types from function calls, if you’re using TypeScript or JavaScript. As with any other intention, you can use it by pressing Alt+Enter.

infer-parameters-from-usages-js

For TypeScript, this intention introduces generic arguments when necessary.

infer-parameters-from-usages-ts

That’s it for the most notable highlights. Here are some smaller changes:

  • We’ve disabled an inspection that would, in some cases, warn you about having unterminated statements where they were actually acceptable. If you need it, you can enable the inspection again in Preferences/Settings | Editor | Inspections and look for Unterminated statement.
  • The Version Control tool window is now called the Git tool window, or Subversion/Mercurial/Perforce if you are using any of these instead of Git.

Please report any issues on our issue tracker. And stay tuned for next week’s update!

The WebStorm team

Comments below can no longer be edited.

8 Responses to WebStorm 2020.1 EAP #4: LightEdit Mode, an Option to Update All Jest Snapshots for a File, and More

  1. Arno Nyhm says:

    February 14, 2020

    No valid link to IDEA-226206

    • Ekaterina Ryabukha says:

      February 14, 2020

      Hello,

      Thank you for reporting this! The link is valid but the issue is not visible to the outside of JetBrains, sorry for the inconvenience. All changes will be documented in our web help soon.

  2. Uri Mor says:

    February 17, 2020

    Hi,
    About LightEdit mode:
    I think it is great! please also supply a command line parameter to open a file in a new webstorm window even if there is already one open

    • Ekaterina Ryabukha says:

      February 17, 2020

      Hello Uri,

      Thank you for the feedback! Just to make sure we’re on the same page: Do I get it right that you’d like to have an option to open a file in a new, separate window and not just in a new tab when using LightEdit Mode? I’m asking because it should be possible to open a file in a new tab and have several files opened in LightEdit Mode.

      • Andres Riofrio says:

        February 22, 2020

        No, I think they’re referring to opening a file in LightEdit mode even when there’s already a WebStorm window with a project open in it.

        The description in this article seems to indicate that there is no way to open a file in LightEdit mode when there’s any project window open.

        • Ekaterina Ryabukha says:

          February 24, 2020

          Hello Andres,

          Thanks for the idea! I hope Uri clarifies what exactly was meant later.

          Either way, feel free to share your feedback here: https://youtrack.jetbrains.com/issue/IDEA-62898. We’re still working to improve the LightEdit Mode so all suggestions are very welcome.

      • Uri Mor says:

        February 25, 2020

        Hi Ekaterina,

        What I meant was opening a new file from the command line to a new window when another webstorm window is already open

        The scenario I had in mind is using it in scripts or use it as git editor where I want to open a file real quick, edit and then close