Optimize imports: the shortcut in 4 apps
On Mac it is usually Ctrl+Option+O (3 of 4 apps); on Windows it is usually Ctrl+Alt+O (3 of 4 apps); on Linux it is usually Ctrl+Alt+O (3 of 4 apps). The table shows where each app agrees and where it differs.
| App | Mac | Windows | Linux |
|---|---|---|---|
| EclipseOrganize imports | ShiftCmdO | CtrlShiftO | CtrlShiftO |
| IntelliJOptimize imports | CtrlOptionO | CtrlAltO | CtrlAltO |
| PyCharmOptimize imports | CtrlOptionO | CtrlAltO | CtrlAltO |
| WebStormOptimize imports | CtrlOptionO | CtrlAltO | CtrlAltO |
How the apps compare
- Mac: Ctrl+Option+O in IntelliJ, PyCharm and WebStorm; Shift+Cmd+O in Eclipse.
- Windows: Ctrl+Alt+O in IntelliJ, PyCharm and WebStorm; Ctrl+Shift+O in Eclipse.
- Linux: Ctrl+Alt+O in IntelliJ, PyCharm and WebStorm; Ctrl+Shift+O in Eclipse.
Learn it by pressing it: Eclipse shortcuts practice, IntelliJ shortcuts practice, PyCharm shortcuts practice or WebStorm shortcuts practice.