17

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/

2
  • Not on the Mac. See my answer: stackoverflow.com/a/56063989/817658 Commented May 9, 2019 at 16:40
  • So why is it called “Hippie Completion”? Commented Oct 27, 2022 at 22:30

4 Answers 4

14

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

Sign up to request clarification or add additional context in comments.

1 Comment

(a) You omitted a macOS shortcut. (b) And no, IntellliJ does indeed call it Hippie completion, at least nowadays. See documentation.
2

The shortcut +/ stopped working on recent Macbooks.

You can change the shortcut, for example to Ctrl+/ and Ctrl++/, in your perferences. The feature is called Cyclic Expand Word in IntelliJ 14.

1 Comment

See my answer for where this shows up in Eclipse on Mac: stackoverflow.com/a/56063989/817658
1

Yet another home for hippie completion - Eclipse on Mac: it's called "Word Completion" and is typed Ctrl .

Comments

0

Hippie completion in IntelliJ

See the documentation. To quote:

Hippie completion is a completion engine that analyses your text in the visible scope and generates suggestions from the current context. It helps you complete any word from any of the currently opened files.

When using that documentation page, notice that the page is set to show keyboard shortcuts for one particular platform. To switch platforms, use the Shortcuts pop-up menu in the bar at upper-right corner of the window.

macOS

  • Press ⌥ / or choose Code | Code Completion | Cyclic Expand Word to search for matching words before the caret.
  • Press ⌥ ⇧ / or choose Code | Code Completion | Cyclic Expand Word (Backward) to search for matching words after the caret and in other open files.

Windows OS

  • Press Alt+/ or choose Code | Code Completion | Cyclic Expand Word to search for matching words before the caret.
  • Press Alt+Shift+/ or choose Code | Code Completion | Cyclic Expand Word (Backward) to search for matching words after the caret and in other open files.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.