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