Early Access Program

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

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

image description