Introduce variable

Refactor your code and introduce a new variable

Let IntelliJIDEA help you refactor your code. Use Introduce Variable ⌥⌘V (macOS) / Ctrl+Alt+V (Windows/Linux) to assign (part of) an expression to a new variable.

Related Resources

Extract Method
Extract code to a new method
Inline Variable
Inline a variable in your code
Generate Code
Helps you to generate commonly used code constructs