It's been a while since I last used Eclipse. I used to love this handy key shortcut that added all the imports to the top of the source file, but I've forgotten it. Does anyone know what this shortcut is?
Cmd+I is the shortcut for Import, but just remember, that brings up this traditional import dialog, where you search for what you want and bring it into the project.
Press: CTRL + SHIFT + O and you should see below dialog boxes. Choose your desired import package and click next. It will prompt you for your next import and thats it. You are done.
Ctrl + Shift + O (<-- an 'O' not a zero)
Note: This shortcut also removes unused imports.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With