IntelliJ IDEA 13.1.0 Web Help

Refactor | Move

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.

See Also


Web Resources: