IntelliJ IDEA 14.1.1 Help

Move Class Dialog

Refactor | Move
F6


The Move Class refactoring dialog box is invoked for the classes selected in the Project view, or opened in the editor.

Item Description
To package Specify the destination package. Click the ellipsis button, and select the target package in the Choose Destination Package dialog that shows a tree view of all packages within the project.
Make inner class of If you want to make your class inner, specify the target class. Click the ellipsis button and select the target class in the Choose Class dialog.

This option is not available for ActionScript.

Search in comments and strings Select this option to apply the changes to comments and strings.
Search for text occurrences Select this option to apply the changes to documentation, HTML, JSP and other files included in your project.
Search for references Select this check box to have the changes applied to the references to the file in question. This option is available only for Move File or Move Package refactorings.
Move to another source folder If this option is selected, you can select the target root, where the destination package will be located. If the option is not selected, only the current root is used.

This option is disabled for the modules that contain a single source root.

Target destination directory When the dialog box opens, the field shows the path to the folder where the file that implements the class to move is currently stored. The path is displayed in the format . The path is read-only and is updated automatically as you specify the namespace to move the class to.
Open moved in editor Select this check box to open the moved class in the editor.

See Also

Procedures:

Web Resources:

Last modified: 6 April 2015