# 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:

Move | Alt+Shift+V | Moves 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.

Rename

Alt+Shift+R

Renames 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 Method | Alt+Shift+M | Extracts methods from selected code.
Extract Local Variable | Alt+Shift+L | Extracts 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.

#### Related Links:

- Menus
- File
- Edit
- Source
- Navigate
- Search
- Project
- Run
- Window
- Help