IntelliJ IDEA
 
2022.3
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Rename dialog for a directory

Last modified: 17 January 2023

Refactor | Rename

Shift+F6

Use this dialog to rename a directory.

In addition to renaming the directory itself, IntelliJ IDEA can also look for the usages of the directory name. If found, the changes you are making to the directory 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.