Refactor Menu

The Refactor menu allows you to edit names and locations of files and resources.
For more information on refactoring, see Using Refactoring.

The options available from the Refactor menu are:

MoveAlt+Shift+VMoves a file to a different folder.

To move a file, select it from the Project Explorer view.

A Move dialog will open. Select the required folder and click Preview to see all changes that will be made as a result of the Move.

Click OK to implement your changes and move the file. All references to the file will be automatically updated to reflect its new location.
RenameAlt+Shift+RRenames a file or element.

To rename a file, select it from the Project Explorer view. To rename an element within a file select it from the Project Explorer view or highlight it in the editor view.

A rename dialog will open. Enter the new name and click Preview to see all changes that will be made as a result of the rename.

Click OK to implement your changes. All references to the file / element will be automatically updated to reflect the change.
Extract MethodAlt+Shift+MExtracts methods from selected code.
Extract Local VariableAlt+Shift+LExtracts variables from selected code.

Note:

Refactoring options will only be available from within Project Explorer view and not from Navigator view.
Using the Navigator view's move/rename functions will not update any referenced instances of the file/element.