Extract/Introduce refactorings
Move expressions and code into variables, constants, types, interfaces, or functions.
- Extract variable: Replace an expression with a variable.
- Extract constant: Move a value into a named constant.
Also in this section
- Extract interface: Create an interface from the methods of an existing type.
- Introduce type: Create a named type from a type expression.
- Extract function: Move a code fragment into a separate function or method.