Refactoring
Function | Shortcut | Description |
---|---|---|
Rename | Shift+F6 | Rename the selected file, class, field, method, etc. and change all references to it accordingly. |
Change Method Signature | Control+F6 | Change the signature of the selected method and update all the corresponding method calls. |
Move | F6 | Move the selected class, package or static member to another package or class and update all the corresponding references. |
Copy | F5 | Create a copy of the selected class, file or directory in the same or different directory or package. |
Clone | Create a copy of the selected class in the same package. | |
Safe Delete | Alt+Delete | Delete the selected class, method or field checking its usages. |
Extract Method | Control+Alt+M | Turn the selected code fragment into a method. |
Introduce Variable | Control+Alt+V | Create a new variable and use the selected expression as its value. |
Introduce Field | Control+Alt+F | Create a new field and use the selected expression as its value. |
Introduce Constant | Control+Alt+C | Create a new constant (static final field) and use the selected expression as its value. |
Introduce Parameter | Control+Alt+P | Turn the selected expression into a new method parameter. |
Inline | Control+Alt+N | Inline the selected method or variable. |