Convert function with Promise to async/await
You can automatically change a function that returns a Promise with
.catch() calls to an async function that uses the async/await syntax. Simply
press Alt-Enter on the name of the function and select Convert to async function.
New inspections for Angular apps
For Angular applications, WebStorm adds 17 new inspections that will help you detect Angular-specific errors in your app as you type, and will suggest quick-fixes. These inspections work both in the TypeScript and template files and check the use of bindings, directives, components, and many other things.
Easier navigation in Angular projects
In Angular apps, you can now use the Related Symbol… popup (Ctrl-Cmd-Up / Ctrl+Alt+Home) to quickly jump between the different component files such as TypeScript, template, style, and test files. In the TypeScript file, the popup will also list all the symbols that were imported into this file.
Improved support for TypeScript in Vue apps
WebStorm now uses the TypeScript language service together with its own TypeScript support for any TypeScript code in .vue files. This means that you’ll now get more accurate type checking and type info, you will be able to use the quick-fixes provided by the service, and see all the TypeScript errors in the current file in the TypeScript tool window.
Extract Method for React hooks
The Extract Method refactoring now works with local functions and uses destructuring for the return values, making it perfect for extracting custom React hooks.
Improved completion for props
WebStorm now provides better code completion for React props merged using with the spread operator.
HTML and Style Sheets
The documentation (F1) for CSS properties and HTML tags and attributes now shows up-to-date descriptions and information about the browser support from MDN as well as links to the full MDN articles.
Browser compatibility check for CSS
To check that all the CSS properties you use are supported in the target browser version, you can enable a new Browser compatibility inspection in preferences.
Camel case support for CSS Modules
Extract CSS variable
With the new Extract CSS variable refactoring, you can replace all the usages of a value in a current
.css file with a variable by using the
Highlighting for failed line in test
When you run tests with Jest, Karma, Mocha, or Protractor and some tests fail, you can now see right in the editor where the problem happened. The IDE will use the information from the stack trace and highlight the failed code. On hover, you’ll see the error message from the test runner and you can immediately start debugging the test.
Testing with Cucumber and TypeScript
Using Cucumber and TypeScript? You can now jump from the steps in the .feature file to their definitions in the .ts file, and generate missing definitions using a quick-fix (Alt-Enter).
New debugger console
Node.js debug tool windows! It now displays objects using a tree view, and it supports
styling of log messages with CSS and grouping them using
console.groupEnd(). You can also filter out
any type of log messages.
Completion for npm scripts
When adding new scripts to the package.json file, WebStorm now provides suggestions
for available commands provided by the installed packages. After typing
node, the IDE will suggest folder and file names. And after typing
run, you’ll see a list of tasks defined in the current file.
Improved support for linters
WebStorm can now run multiple processes for ESLint and TSLint in one project to make sure that they work correctly in monorepo-projects and in projects with several linter configurations.
Support for Docker Compose
If you use Docker for testing your Node.js application, you can now use the configuration described in the Docker Compose file to easily run and debug the app from the IDE.
Version range tooltip for dependencies
In package.json, press Cmd/Ctrl and hover over the version on a dependency to see what
range of versions can be installed when running
npm install or
Recent locations popup
The Recent Locations popup (Cmd-Shift-E / Ctrl+Shift+E) is a new way to navigate around the project. It shows a list of all the files and lines of code in them that you have recently opened in the editor. You can start typing to filter the results and jump to the code you need.