Rename dialog for a package

Last modified: 11 February 2024

Use this dialog to rename a package.

In addition to renaming the package itself, IntelliJ IDEA can also look for the usages of the package name. If found, the changes you are making to the package name can also be applied to these usages.

The usages are assigned to different categories which correspond to the options which you can turn on and off.

You can set up a scope for usages of a class where the renaming method is located. For example, it might be helpful if you want to rename some popular method such as getSomething. Instead of searching through the whole project and deciding what to rename or what to leave unchanged along the way, you can limit your search to just one file, or just open files, or the recently changed files, and so on.