Home > database >  Java IntelliJ, Change existing class usages to a New Class
Java IntelliJ, Change existing class usages to a New Class

Time:12-19

In Java Spring Boot using IntelliJ, How do I change refactor existing class usages to a different class? I don't want to rename an existing class, but migrate to a new class. Example

change Fruit to Automobile class

This reference does not help,

https://www.jetbrains.com/help/idea/rename-refactorings.html#rename_class_example

CodePudding user response:

On the toolbar:

Edit -> Find -> Replace in Files...

CodePudding user response:

You can try to you "Type migration" refactoring, see this

  • Related