Refactor Rename

Quickly renaming classes, methods, and variables in IntelliJ IDEA.

Rename your classes, methods, and variables using Refactor | Rename. Press ⇧F6 (macOS) / Shift+F6 (Windows/Linux), type the new name and press (macOS) / Enter (Windows/Linux).


Related Resources

Refactoring
Refactoring
Refactoring code for understanding.
Extract Variable
Extract Variable
Extract code to a variable
Migrating from the `javax` to `jakarta` namespace
Migrating from the `javax` to `jakarta` namespace
How to transition your application from Java EE to Jakarta EE.