Advanced Refactoring & FDT 5
From FDT Documentation
With FDT 5, the team has added powerful refactoring to your workflow. These refactorings have been integrated into our Quick Assist workflow, so you won't be slowed down at all - in fact you'll see how quickly you can restructure your code.
Perhaps the most powerful, and fun, refactoring is Extract Method.
This allows you to select a block of code and convert it to a method. FDT automatically infers the method arguments and return types. This is useful when a method is too big and you want to subdivide blocks of it into different methods or if you are executing a computation several times in your code.
The default keystroke for this is CMD+1.
Extract Local Variable
The Extract Local Variable refactoring takes an expression that is being used directly and assigns it to a local variable first. This variable is then used where the expression used to be.
To use it press Ctrl+1 and select assign statement to a local variable.
Extract Contant enables developers to quickly assign strings, colors, object literals and numbers to a static value. This makes renaming ( refactoring ) and changing these values much easier, increases performance and improves readability.
The default binding is CMD+1.
Convert Local Variable to Field Variable
This refactoring takes a local variable and converts it to a private field of the class. After invoked, FDT will create a statement at the top of your class and refactor all references so they reference the field declaration.
This refactoring is available via CMD+1
Split Local Variable Declaration
This refactoring allows you to split a variable (with initialization) into two separate statements: a variable declaration and a variable initialization.
Like all Quick Assists, this invoked by pressing CMD+1.