My favourites (in order of using):
- Rename (
Alt-Shift-R
, or Ctrl-1
for faster in-file renaming)
Good renaming variables,methods,etc. without side effects.
- Extract Variable (
Ctrl-1
, Alt-Shift-L
)
Good for splitting a quick-made-100-character-line to separate steps.
- Extract Method (
Alt-Shift-M
)
Create a method out of some code without any side effects.
- Split Variable Declaration (
Ctrl-1
)
Good when you initialize a variable at the declaration and now find out, that the initialisation needs to be in a try- or if-block.
- Change Method Signature (
Alt-Shift-C
)
The handy Swiss Army Knife of method signature manipulation, including default values for new parameters.
- Pull Up/Push Down
Pull methods and variables to a generic interface or superclass or push it down to a subclass
- Extract Interface/Superclass
Extract an interface or a superclass out of the current class. Very handy.