Okay, I recently started learning Java/Android so I look up a lot of tutorials and do a lot of copying/pasting, but most of the times the tutorial doesn't have the imports imported, so I have to go down the line clicking all the errors then Import this, import that, import something else! So... my question: Is there a way to import all of them at once?
For Eclipse Helios, open the "Project Explorer" view, clic right on your src folder, go under the source menu, and clic "organize imports" that should work for all your project. or just hit the combination Ctrl + Shift + O on the src folder.
Go to Window > Preferences > Java > Editor > Save Actions. Select Perform the selected actions on save (off by default). Ensure that Organize imports is selected (on by default).
Instead of importing the project, begin creating a new project with a different name. Then change the location of the project to your new existing project. Eclipse will then let you create the project using the existing directory and content. In my opinion this is the only answer that directly addresses the question.
You can simply import all of them by pressing the ALT + ENTER key.
On Windows you can use: Ctrl+shift+o which is a shortcut to Organize imports
On Mac it is Command+Shift+O (Thanks orip)
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