Extract Parameter

Extract code to a parameter in Kotlin

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.