IntelliJ IDEA 2018.2 Help

Move Package Dialog

Refactor | Move
F6

Item

Description

Select refactoring

Specify which action you want to perform: move package to another package, move directory to another source root, or to another directory.

This dialog box opens when Move package to another package option has been selected.

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.

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 checkbox 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.

This dialog box opens when Move directory to another source root option has been selected.

Select source root

Choose the target source root from a tree view of source roots configured in your project.

This dialog box opens when Move directory to another directory option has been selected.

To directory

Use this field to specify the destination directory. Click the ellipsis button, and select the target directory in the Select Path dialog box.

Last modified: 25 October 2018

See Also