Extract Parameter

Extract code to a parameter

Highlight the code you want to extract to a field and press ⌥⌘P (macOS), or Ctrl+Alt+P (Windows/Linux), to extract it.

Extracting parameters can be useful in improving the readability of your code.

Related Resources

Generate Code
Helps you to generate commonly used code constructs
Extract Variable
Extract code to a variable
Merge/Unmerge If Statements
Experiment with your code without changing the semantics