java – How to rename a class and its corresponding file in Eclipse?

java – How to rename a class and its corresponding file in Eclipse?

Just right click on the class in the project explorer and select Refactor -> Rename. That it is is under the Refactor submenu.

Shift + Alt + r (Right click file -> Refactor -> Rename) when cursor is on class name. The file and constructors will be also changed.

java – How to rename a class and its corresponding file in Eclipse?

Right click file -> Refactor -> Rename.

Leave a Reply

Your email address will not be published.