Early Access Program

WebStorm 2017.2 EAP, 172.2273: move symbol refactoring

A new WebStorm 2017.2 EAP build (172.2273) is now available! Please download it here. To find out what the EAP is and what features are already available in WebStorm 2017.2 EAP, check out our last week announcement.

Move Symbol Refactoring

This week we are adding a long-awaited Move Symbol Refactoring for JavaScript and TypeScript. It works for classes, functions and variables – all top-level symbols in the ES6 modules. To use it use Refactor This (Ctrl-T on macOS or Alt-Ctrl-Shift-T on Windows and Linux) – Move or just hit F6 on a symbol you’d like to move.

Here’s an example: we’re moving changeSelectedPlaylists from PlayerActions.js to PlaylistsActions.js. Notice that an import for types that changeSelectedPlaylists requires is added to PlaylistsActions.js. And the imports of changeSelectedPlaylists in all other files will also be updated.

move-symbol

Don’t forget to configure the code style for Imports and Punctuation in Preferences | Editor | Code Style | JavaScript or TypeScript to make sure that the result of the refactoring follows your preferred code style.

You can find the full list of issues addressed in this EAP build in the Release notes.

Please report your feedback to our issue tracker. To get notifications of new EAP builds as they become available, subscribe to the EAP channel in Preferences | Appearance & Behavior | System Settings | Updates.

Your WebStorm Team

image description