This Refactoring combines the initialization and declaration into a single statement. This reduces the number of lines in your code and increases its readability.
Available when the caret is on a variable name in its declaration or initialization.
Place the caret on a variable name in its declaration or initialization.
The blinking cursor shows the caret's position at which the Refactoring is available.
a│ = 1.42;
Dim a As Double
a│ = 1.42
After execution, the Refactoring moves the variable initialization to the statement at which it was declared.
double a = 1.42;
Dim a As Double = 1.42