IntelliJ IDEA 2021.1 Help

Move Package Dialog

Refactor | Move
F6

ItemDescription
Select refactoringSpecify which action you want to perform: move package to another package, move directory to another source root, or to another directory.
This dialog opens when Move package to another package option has been selected.
To packageSpecify 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. The content of a package is moved along with the package from the old location to the new destination package.
Search in comments and stringsSelect this option to apply the changes to comments and strings.
Search for text occurrencesSelect this option to apply the changes to documentation, HTML, JSP and other files included in your project.
Search for referencesSelect this checkbox to have the changes applied to the references. This option is available only for Move File or Move Package refactorings.
Move to another source folderIf 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 opens when Move directory to another source root option has been selected.
Select source rootChoose the target source root from a tree view of source roots configured in your project.
This dialog opens when Move directory to another directory option has been selected.
To directoryUse this field to specify the destination directory. Click the ellipsis button, and select the target directory in the Select Path dialog.
Last modified: 08 March 2021