IntelliJ IDEA– Remove/Optimize unused imports shortcut keys
In IntelliJ IDEA, Ctrl + Alt + O is the shortcut keys to remove/optimize unused imports for Windows/Linux operating system, and control + option + O is for Mac OS.
P.S. Tested with IntelliJ IDEA 2019.3.3 (Community Edition) on Windows machine.
1. Before

2. After

References
- IntelliJ IDEA – Find file containing text shortcut
- IntelliJ IDEA – Code reformat and rearrange shortcut keys
- IntelliJ IDEA – System.out.println shortcut
- IntelliJ IDEA – public static void main shortcut
Similar Posts
- IntelliJ IDEA – Find file containing text shortcut
- Website- How to redirect non www to www in htaccess
- How to create new user account in Windows 7?
- Shortcut key for Extract Local Variable in Eclipse/STS
- How to view HTTP headers in Mozilla Firefox
- Maven- No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- How to block direct access of File using htaccess
- How to create Password Reset Disk for Windows 7?
- IntelliJ IDEA shortcut for Extract/Introduce Local Variable
- How to set maximum line length in Eclipse/STS