Use powerful refactoring commands to safely make small and large-scale changes.
Undo any refactoring with command + Z
.
Move
Move classes, methods, files, and directories with F6
.
Move top-level class
Move inner class
Move package
Rename
Rename classes, methods, variables, parameters, files, and directories with shift + F6
.
Type Migration
Migrate the type of fields, parameters, variables, and method return types with command + shift + F6
. The cursor must be on the type.
Change Signature
Change any part of a method signature with command + F6
. The cursor must be on the method name.
Add a parameter with command + N
. Remove a parameter with Backspace
or delete
.
Re-order parameters with option + Up
and option + Down
.
About the Author