Refactor actions

Refactor menu commands:
Name Function Keyboard Shortcut
Rename Renames the selected element and (if enabled) corrects all references to the elements (also in other files).
Available: Methods, method parameters, fields, local variables, types, type parameters, enum constants, compilation units, packages, source folders, projects and on a text selection resolving to one of these element types
Options: Renaming a type does allow to rename similarly named variables and methods. Enable 'Update similarly named variables and methods' in the Rename Type dialog. Select 'Configure...' to configure the strategy for matching type names.
Renaming a package does allow to rename its subpackages. Enable 'Rename subpackages' in the Rename Package dialog.

Enable 'Keep original method as delegate to changed method' to keep the original method. Optionally you can deprecate the old method.
Alt + Shift + R
Move Moves the selected elements and (if enabled) corrects all references to the elements (also in other files).
Available: Instance method (which can be moved to a component), one or more static methods, static fields, types, compilation units, packages, source folders and projects and on a text selection resolving to one of these element types
Options: You can use Drag & Drop in the Script Explorer to start this refactoring.
Alt + Shift + V

Refactoring commands are also available from the context menus in many views and the VJET editor.

Please refer to the Refactor Menu Actions in Java Development User Guide for detailed introduction.


Related reference