score:219

Accepted answer

by default in eclipse you only have to press ctrl + space for autocomplete. then select the desired method and wait 500ms for the javadoc info to pop up. if this doesn't work go to the eclipse windows menupreferencesjavaeditorcontent assist and check your settings here

score:-2

for me, it helped after i changed the theme to 'mac' since i am running on a macosx.

eclipse: >preferences > general > appearance > choose 'mac' from the menu.

score:0

if the auto-complete option is not enabled then you have to check your settings from windows menu -> preferences -> java -> editor -> content assist->advanced and mark java proposals and chain template proposals .

score:0

in eclipse click windows drop-down > click preferences > navigate to java > editor > content assist in order to make the auto suggestion/completion to work you have to set trigger that invoke the auto completion.

now go to, auto activation > auto activation triggers for java

enter all the characters you want to trigger autocomplete to be invoked in eclipse ide, such as the following:

alpahabets: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz

or

special characters: ~!@#$%^&*()_+=-:;'"|?/.,

or

any combination of alpahabets & special characters.

now based on the references, eclipse will trigger autocomplete suggestions for you.

score:2

if you are only unfamiliar with the auto-complete while typing syntax or inbuilt methods in the eclipse you can simply type the desired syntax or method name and press ctrl+space that will display the list of desired options and you can select one of them.

if the auto-complete option is not enabled then you have to check your settings from windows menu -> preferences -> java -> editor -> content assist

score:2

for anyone having this problem with newer versions of eclipse, head over to window->preferences->java->editor->content assist->advanced and mark java proposals and chain template proposals as active.

score:3

i am not sure if this has to be explicitly enabled anywhere..but for this to work in the first place you need to include the javadoc jar files with the related jars in your project. then when you do a cntrl+space it shows autocomplete and javadocs.

score:9

for auto-completion triggers in eclipse like intellij, follow these steps,

  1. go to the eclipse windows menu -> preferences -> java -> editor -> content assist and check your settings here
  2. enter in autocomplete activation string for java: abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz._@
  3. apply and close the dialog box.

thanks.

score:14

  1. window->preferences->java->editor->contest assist
  2. enter in auto activation triggers for java:
    abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz._
  3. apply and close

other method:
type initial letter then ctrl+spacebar for auto-complete options.

score:211

if you would like to use autocomplete all the time without having to worry about hitting ctrl + spacebar or your own keyboard shortcut, you can make the following adjustment in the eclipse preferences to trigger autocomplete simply by typing several different characters:

  1. eclipse > preferences > java > editor > content assist
  2. auto activation > auto activation triggers for java
  3. enter all the characters you want to trigger autocomplete, such as the following:

abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz._

now any time that you type any of these characters, eclipse will trigger autocomplete suggestions based on the context.


Related Query

More Query from same tag