Anton Belev
Anton Belev

Reputation: 13623

Get Import Suggestions in IntelliJ

Is there a way to get a list of import suggestions in IntelliJ IDE? I'm looking for the equivalent of CTRL+SHIFT+O functionality from Eclipse, which automaticaly lists import suggestions.

Thanks!

Upvotes: 8

Views: 7688

Answers (1)

JB Nizet
JB Nizet

Reputation: 692231

On my current machine (on Windows), it's Ctrl-Alt-O, and the command is named "Optimize imports".

In general, in IntelliJ IDEA, you can use Ctrl-Shift-A and press part of a command to find it and know the appropriate shortcut. Typing Ctrl-Shift-A (or if you're on a Mac -Shift-A) and then search for "import" allows finding this command easily.

That said, it seems this command doesn't suggest imports like Eclipse does.

Upvotes: 8

Related Questions