First, set the Super automatic prompt
Set Eclipse/myeclipse code hints can be convenient for developers, do not remember the rambling words, only with the first letter, the prompt menu will appear. As easy as Dreamweaver.
1. Menu Window->preferences->java->editor->content assist-right-auto-activaction column-enable auto activation Option to tick
2.Auto Activation triggers for Java Direct write (new eclipse can write long characters directly) ". ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ, ([{@]
3. Set the reflection time, Auto activation delay default is 200, generally set to 20~50 4.* at this time has not reached the super prompt, the software on the class and interface is also a good hint.
4. Continue setting window->preferences->java->editor->content Assist expand->advanced above tab select the proposal kinds Contained in the ' Default ' content Assist list: Check all 7 options! At this point, the settings end, whether it is a statement, class, interface, keyword, or method, can automatically prompt.
Two. The ability to automatically complete the first hint word by a space or "=" When you cancel the MYECLIPSE code hint
The problem follows the setup as above: For example, I want to enter Conn press the space after the first connection prompt. The action " SPACEBAR" and the " equals key" will default to the first item of the prompt.
Scenario One: Each time you do not want to fill the hint word, you can press ESC, that is, you can cancel the prompt word, then press space or "=" will not be automatically complete.
Scenario Two: According to the speed of their own input code, reasonable adjustment of the reflection time, Auto activation delay value, you can avoid the above situation
Eclipse/myeclipse Code hints/Auto Prompt/auto-complete settings