Refactoring in the DVT Eclipse IDE - How to Perform Extract to Variable Refactoring


Using DVT's Extract to Variable refactoring, an expression inside a function or task can easily be extracted to a local variable. Just select the expression and press Ctrl+1 - the variable will be declared and initialized with the extracted expression in the correct scope. You may chose to replace all the occurrences of the expression with the newly created variable, or only the selected one.

Explore the design and verification tools:
Or request a license: