

In this example, the Pull Class Members Up refactoring moves the printMeeting() method from AccountingDepartment to its superclass Department.Ĭonsole.log("Department name: " + this.name) Ĭonsole.log("The Accounting Department meets each Monday at 10am.

Suppose you have a class AccountingDepartment that extends an abstract class Department. The Pull Class Members Up refactoring moves class methods upwards in the class hierarchy – from the current class to a superclass.Įxample: moving a class method to a superclass If you want to keep the visibility level unchanged, click As is in the Visibility. Specify the destination file and select the members to move.īy default, WebStorm automatically raises the visibility of the members to the required level. When you are typing the folders name and then pressing enter, you are actually renaming the folder. Alternatively, choose Refactor | Refactor This or press Ctrl+Alt+Shift+T, then choose Move from the list. 1 When you create a new folder using Explorer, it names the folder 'New Folder', and then it enters rename mode. Flexible Renamer Powerful but easy to use Seems to be no longer maintained Free Context menu in Explorer Tag management Has many translations Scriptable. Press F6 or choose Refactor | Move from the context menu or from the main menu. The Move Symbol Refactoring works for classes, functions, and variables in ES6 modules. Move Symbol refactoringīesides moving files and folders, WebStorm lets you move JavaScript top-level symbols. Refactoring helps you keep your code solid, dry, and easy to maintain. Refactoring means updating the source code without changing the behaviour of the application.
