Extract Method

Extract code to a new method

Refactor code as you write it. Use Extract Method ⌥⌘M (macOS) / Ctrl+Alt+M (Windows/Linux) to extract (part of) a method, give the new method a meaningful name and make your code easier to read and understand.


Related Resources

Inline Variable
Inline a variable in your code
Introduce variable
Refactor your code and introduce a new variable
Generate Code
Helps you to generate commonly used code constructs