score:65
I'm pretty sure he has Ctrl + Shift + O in mind, but I may be wrong.
score:1
In Preferences->General->Key, you can have your bindings for shortcut key. This article: Eclipse Short Cut Keys lists some useful shortcuts.
score:5
The easiest thing to do is to start typing the type name, then press Ctrl + Space to get the completions. Selecting the completion will complete the type name that you are typing and will also add the import statement. Short of that, there is Ctrl + 1, which will bring up quick fixes when you are over a piece of code with problem. There is typically a quick fix to import type.
score:7
some useful Eclipse shortcuts, you need first one
1. Ctrl + Shift + O : Organize imports
Ctrl + D : Delete row
Ctrl + 1 : Activate quick fix
Ctrl + O : Open declarations
Ctrl + / : Line Comment
Alt + Shift + R : Rename selected element
Ctrl + Shift + L : Shortcut for shortcuts
if you need more refer here
score:8
For Mac users the shortcut is:
CMD + Shift + O
score:25
You can use Ctrl + Shift + O to "O"rganize Imports (like Crembo mentions). Another neat trick is to go to Windows > Preferences, search for "Save Actions", and check "Organize Imports". Now whenever you save (Ctrl + S), Eclipse will automatically run the "organize imports" feature. I find this quicker, since it's quicker for me to hit Ctrl + S than Ctrl + Shift + O (one-hand shortcut versus two-hand shortcut).
Source: stackoverflow.com
Related Query
- Eclipse keyboard command to add import statement
- How to add a keyboard shortcut to the Team->Add command in eclipse
- Java formatter in Eclipse - change java.lang.Object references to Object, add import statement as necessary
- eclipse import project using command line
- import eclipse preferences on the command line
- How to import multiple projects into Eclipse using command line?
- Add Watch Expression in Eclipse using keyboard shortcut
- Can Eclipse auto-complete import statement without adding wildcard?
- Eclipse plug-in: add Launch command group to Custom Perspective
- How to Import Preferences (.epf) in eclipse via command prompt?
- Eclipse 3.7 (indigo SR2) m2e (1.1) import Maven will not add source folders of generated sources
- Add JSON class folder and import in Java and Eclipse as IDE
- eclipse jdt import project from command line
- finding referenced library from import statement in eclipse
- Trouble deciding how to add popup menu to eclipse plugin using either action ObjectContributions or command handlers
- how to import existing eclipse project from command line
- How can you import M2E Maven projects into Eclipse from the command line?
- Howto import Eclipse gradle projects and run / launch configurations from command line
- JDK version showing 1.8.0_92 in Command Prompt, but not being able to import in NetBeans or Eclipse
- Import EMX into Eclipse via command line
- Import Clearcase View into Eclipse workspace, update maven dependencies, build workspace by command line Windows
- import bsh.This; statement in eclipse
- Python import error in eclipse (Package works in command line but not eclipse)
- Confusing statement about package and import keyword in eclipse
- How to add custom command to cheatsheet in eclipse
- Import Maven (or Gradle) project to Eclipse in command line
- How can I add sql statement in C/C++ Eclipse Editor?
- Eclipse Add Project1 as dependent and auto import its dependents
- Are there command line arguments to import and setup projects for Eclipse + EGit?
- How to add options to command in menu, Eclipse Plugin
More Query from same tag
- Eclipse RCP Spring Framework java.lang.ClassNotFoundException for classes
- Eclipse installer not showing any packages
- "Could not find or load main class" while trying to use JavaFX in Eclipse
- ByteArrayBody from org.apache.http.entity.mime.content cannot be reached
- Eclipse Won't Recognize BLU Dash 3.5 As An Active Android Device
- Java build issues - Java 8 to Java 11 migration
- Could not find class 'com.parse.ParseObject$30', referenced from method com.parse.ParseObject.fetchInBackground
- Java classLoader and getResourceAsStream
- Eclipse code formatter/interpreter 5.4.3
- Android: Proguard NoSuchMethodError
- Span Background Over Entire Intro Page
- "maven-resources-plugin prior to 2.4 is not supported by m2e"
- Code too large on Ant in Linux but compiles on Eclipse in Windows
- How to move all content down by 10px (Android in eclipse)
- Spring/Eclipse 'referenced bean not found' warning when using <import>?
- How to know the size of assembly lines of code between two c++ break points?
- error in converting String to Calendar?
- changing eclipse colors but don't know what this part of the screen is even called
- Could not find or load main class org.logicalcobwebs.cglib.transform.hook
- Importing Eclipse project into Android Studio - getBuildScript error
- Lego EV3 not Executing programs
- Setting up Spring + Maven on RSA (Rational Software Architect) with WebSphere
- Problems with Android XML Editor and Eclipse...Hard to manually edit XML
- How to insert line comments in code programmatically in Eclipse
- SQLiteException no such column : plus (code 1)
- How to view the list of all variables and methods in a class in Xcode while coding (not debugging) like in Eclipse?
- Remove unused functions from google play services
- Add new item to expandablelistview
- Eclipse Egit Cannot Log Into Bitbucket
- java.lang.ClassCastException: android.widget.LinearLayout cannot be cast to android.widget.Button