The Move refactorings allow you to move files and directories within a project. So doing, RubyMine automatically corrects all references to the moved symbols in the source code.
The following Move refactorings are available:
- The Move File refactoring moves a file to another directory.
- The Move Directory refactoring moves a directory to another directory.
- The Move Static Member refactoring moves a static method, variable, or constant from one class to another,
- Select the symbol to be moved and do one of the following:
- On the menu, or on the context menu, choose .
- Press F6F6F6F6F6F6Ctrl+MShift+Alt+VF6F6F6Alt Command VF6.
- In the Project tool window, drag the symbol to the new destination.
The dialog that opens depends on the type of the selected symbol.
- Specify the move options according to the type of the item to be moved. See option descriptions in the Move dialog box reference.
- Preview and apply the changes.