31

I am new to Eclipse and I want to know if it's possible to have the completion window open up automatically while I type (Visual Studio style) and not by clicking Ctrl + Space?

MrLore
  • 3,759
  • 2
  • 28
  • 36
Amit Raz
  • 5,370
  • 8
  • 36
  • 63
  • 1
    Possible duplicate of [Auto code completion on Eclipse](http://stackoverflow.com/questions/6202223/auto-code-completion-on-eclipse) – bummi Jan 18 '16 at 09:50

1 Answers1

63

It is possible. You can simply write: .abcdefghijklmnopqrstuvwxyz in Auto activation triggers for Java field, under Preferences > Java > Editor > Content Assist.

While writing Java code, after the dot . the window opens automatically after a configurable amount of time (default is 200 ms.)

In general, what you can do is add an auto activation trigger, for example _, so when you want the windows to popup, you type and delete that character (althought I don't think that's better than CTRL + SPACE).

nbro
  • 15,395
  • 32
  • 113
  • 196
adrianboimvaser
  • 2,651
  • 1
  • 22
  • 30
  • 9
    You could theoretically add a trigger for every character I guess. – Falmarri Jan 22 '11 at 00:48
  • dont forget to add < so you get it in the .xml files to – Amit Raz Jan 24 '11 at 17:54
  • 1
    but this only for eclipse with java, i want it should be also in eclipse java-script there is only allowed to add 4 latter's, any idea? – Elye M. Sep 12 '12 at 19:54
  • 5
    You can manually set the value for javascript(jsdt): .metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.wst.jsdt.ui.prefs, content_assist_autoactivation_triggers_java=._abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ – Michael Allan Jackson Oct 18 '12 at 00:07
  • is backspace a character I can add? – Pascalius Nov 26 '12 at 14:21
  • @majgis It seems like the location for the JavaScript content assist triggers has changed. Do you know where it is in Juno? – stepanian Aug 03 '14 at 09:59