views:

58

answers:

2

In Netbeans, it's Ctrl + K that activate the hippie completion,

In Eclipse, it's Alt+/

What is it in IDEA?

Edit: Hippie Completion is the kind of completion that doesn't require much information about the context. It scans all the word in file(s) and immediately choose the first match. It originate in some variation of Emacs.

Read more here: http://beust.com/weblog/2005/03/11/hippie-completion-in-eclipse/

+1  A: 

Are you serious? IDEA probably has the best completion around. Have you tried control-space to start with?

St3fan
He wasn't suggesting that Idea *doesn't* have it. He was curious what the shortcuts were. But yes, CTRL-SPACE, CTRL-SHIFT-SPACE, CTRL-ALT-SPACE all do nice code completions. But I don't have the foggiest idea what "hippie" completion is. :)
Kirk Woll
@Kirk Woll: Don't you mind explaining the difference between 3 kinds of completion?
Phương Nguyễn
@Kirk Woll: "Hippie expansion" is an Emacs feature (Ctrl+K), a specific form of auto-completion. I'm guessing that's what he's referring to.
ZoogieZork
I thought, that hippie completion should be much colorful, than ordinary one :)
Andrew
Sorry, CTRL-SPACE just gives you variables/fields/methods/etc. available at the current context. CTRL-SHIFT-SPACE gives you a subset of the prior list filtering out only values that would be appropriate at the current context (i.e. String s = _ where _ is the cursor would only return variables/fields that are of type String). CTRL-ALT-SPACE is like CTRL-SPACE but will also search for declarations not available at the current context. This mostly applies to classes and trying to use code completion to complete for types that haven't been imported yet. (It will add the imports for you.)
Kirk Woll
+2  A: 

I have found it: Alt+/ or Alt+Shift+/. IDEA call it Expand word.

Phương Nguyễn
Woot, new feature for me, thanks for sharing. Don't forget to mark your own answer as accepted
Chubas