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 "m开发者_如何学Pythone", 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…
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
Try typing "me" and then pressing Ctrl + Space.
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.
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
精彩评论