Refactor Menu

The Refactor menu allows you to edit names and locations of files and resources.

 

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 PHP 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 PHP Explorer view. To rename an element within a file select it from the PHP 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.

Note:

Refactoring options will only be available from within PHP 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.

 

 

link_icon.png

Related Links:

Menus

File

Edit

Source

Navigate

Search

Project

Run

Window

Help