How to remove unused imports from Eclipse

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

    I just found the way. Right click on the desired package then Source -> Organize Imports.

    Shortcut keys:

    • Windows: Ctrl + Shift + O
    • Mac: Cmd + Shift + O

提交回复
热议问题