Use this dialog box to specify options for the Extract Method refactoring command. You can use the Extract Method command to create a new method from selected code in the IDE. When you use this operation, a method is created and selected code is replaced with a call to the new method.
You can open the Extract Method dialog box by selecting the block of code that you want to have extracted into a method and then choosing Refactor > Extract Method.
The dialog box has the following fields:
If Preview All Changes is not selected, the refactoring is done immediately after you click Next.
If you select the Preview All Changes checkbox, you need to follow these steps to complete the refactoring:
The Refactoring window opens and displays a tree view of the code to be affected by the refactoring.