Eclipse/STS – Optimize/Remove unused imports shortcut keys
Ctrl + Shift + O is the shortcut key to optimize or remove the unused import from your code in Eclipse or Spring Tool Suite (STS) for the Windows/Linux operating system.
P.S. O is the alphabet letter O, not a number 0(zero).
Similar Post: IntelliJ IDEA– Remove/Optimize unused imports shortcut keys
1. Before

2. After

References
Similar Posts
- Maven- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- IntelliJ IDEA- Generate Getter & Setter Shortcut Key
- Deploy jasper reports in JasperReports Server using Parameters
- Shortcut key for Extract Local Variable in Eclipse/STS
- Microsoft Excel Shortcut Keys List