Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

Eclipse refactors the menu


May 24, 2021 Eclipse


Table of contents


Eclipse refactors the menu


Refactor with Eclipse

We often need to modify class names in project development, but if other classes depend on that class, we need to spend a lot of time modifying class names.

But eclipse refactoring automatically detects class dependencies and modifies class names, saving us a lot of time.

You can open the refactoring menu in the following ways:

  • Right-click the Java element in the Package Explorer view and select the Refactor menu item
  • Eclipse refactors the menu
  • Right-click the Java element in the Java Editor and select the Refactor menu item
  • Select the Java element in the Package Explorer view and press Shift s Alt s T

In the following image, we selected the HelloWorld class in the Java editor:

Eclipse refactors the menu

After selecting Rename, you are prompted to enter a new class name and press Enter to end the modification:

Eclipse refactors the menu

When the modification is complete and the enter key is pressed, the class that will be modified will pop up:

Eclipse refactors the menu

You can just click the Continue button to get the job done.