Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
Adobe Summit 2023 | Complete list of AEM Sessions & Labs

Remove all unused imports in one go using Eclipse IDE


Level 5
Many times we face problem where some unwanted imports get added in the our program file. It is very annoying and time consuming task to remove those unused imports one by one, to make our code clear and readable.
But we do have a shortcut for this, just in a millisecond our Eclipse IDE done this job for us. Eclipse provide a shortcut CTRL + SHIFT + O, this shortcut command will remove all those unused imports from your code file.
To do so, click anywhere in your java file and press CTRL+SHIFT+O. After using this shortcut command Eclipse will remove all the unused import from your java file. Below are the screenshots:


Unused imports in .java fileUnused imports in .java file



After removing unused importsAfter removing unused imports

1 Reply



Thank you for sharing this wonderful article. @RashidJorvee , Please keep on sharing such phenomenal articles with AEM Community here.