How to remove unused imports from Eclipse

前端 未结 10 1095
不思量自难忘°
不思量自难忘° 2020-12-12 10:57

Is there any way to automatically remove all unused imports (signaled with a warning) of a project with Eclipse IDE?

10条回答
  •  天涯浪人
    2020-12-12 11:44

    Use ALT + CTRL + O. It will organize all the imports. You can find various other options in the "Code" Menu.

    EDIT: Sorry it is CTRL + SHIFT + O

提交回复
热议问题