How to remove unused imports from Eclipse

前端 未结 10 1081
不思量自难忘°
不思量自难忘° 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:37

    Remove all unused import in eclipse:

    Right click on the desired package then Source->Organize Imports. Or You can direct use the shortcut by pressing Ctrl+Shift+O

    Work perfectly.

提交回复
热议问题