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

IntelliJ IDEA– Remove/Optimize unused imports shortcut keys

2. After

IntelliJ IDEA– Remove/Optimize unused imports shortcut keys

References

  1. IntelliJ IDEA – Find file containing text shortcut
  2. IntelliJ IDEA – Code reformat and rearrange shortcut keys
  3. IntelliJ IDEA – System.out.println shortcut
  4. IntelliJ IDEA – public static void main shortcut

Similar Posts

About the Author

Atul Rai
I love sharing my experiments and ideas with everyone by writing articles on the latest technological trends. Read all published posts by Atul Rai.