Change Method Signature

Refactor the signature of a method at any time.

Press ⌘F6 (macOS) / Ctrl+F6 (Windows/Linux), to bring up the Change Signature dialog. You can add or remove method parameters here.

You can use ⌘N (macOS) / Alt+Insert (Windows/Linux), to add a new parameter.


Related Resources

Extract Method
Extract Method
Extract code to a new method.
Inline Variable
Inline Variable
Sometimes inlining a variable can make your code more readable.
Introduce Variable
Introduce Variable
Refactor your code and introduce a new variable right when you need it.