0

Possible Duplicate:
Any way to get IntelliJ-like autocompletion in Eclipse?

Is there a way to make Eclipse autocomplete work in a manner similar to one found in NetBeans? I lack completing to the next common part (i.e. type "me", I got suggestion Message, MessageArchive, MessageRouter so the 'tab' would complete to the "Message") and also auto suggesting on "." (or "enter") when there is subsequent possibility.

Tiny things but the lack of them is extremely frustrating…

Community
  • 1
  • 1
Wojtek
  • 1,845
  • 1
  • 14
  • 33
  • OK, to clarify - after typing "ma" I use Ctrl+space to bring up suggestions, but from there onwards it works kinka weird (see my explanation regarding competing to the next common part and subsequent possibiliteis) – Wojtek Feb 17 '11 at 13:21
  • It turned out that the option that I was looking for was **"Insert common prefixes"** under _Java->Editor->ContentAssist_ – Wojtek May 27 '11 at 17:29

4 Answers4

5

Goto Window -> Preferences -> Java -> Editor -> Content Assits In the column Auto activation triggers for Java column, enter this:

.qwertyuioplkjhgfdsazxcvbnm_QWERTYUIOPLKJHGFDSAZXCVBNM

Add any other keys you want. You're done. You'll have the same effect as Netbeans

Jav_Rock
  • 22,059
  • 20
  • 123
  • 164
rottweiler
  • 1,201
  • 1
  • 12
  • 23
4

Try typing "me" and then pressing Ctrl + Space.

Ken
  • 273
  • 2
  • 9
2

Well if the shortcut: Ctrl+Space doesn't fireup autocompletion, you will need to activate it in your Eclipse IDE.

To do that, go to: Window->Preferences->Java->Editor->ContentAssist and there you can set the parameters that you want.

[EDIT]: Here is a capture to help you with.

Amokrane Chentir
  • 29,907
  • 37
  • 114
  • 158
1

The auto complete functionality should be turned on by default. Eclipse pop up a auto complete box after pressing the "." or you can manually do this by pressing STRG + SPACE on PC or CMD + SPACE on a MAC

Klemens R
  • 21
  • 1