Jeff
Jeff

Reputation: 47

Eclipse Mars Autocomplete Issue

In Eclipse Luna, I would be able to type syso followed by Ctrl+Space, and it would autocomplete as System.out.println();, even though the actual template in Eclipse Preferences was listed as sysout. I was able to type part of the sysout and still have it autocomplete.

In Eclipse Mars, I no longer can do that for some reason. If I type syso followed by Ctrl + Space, I get a autocomplete window which prompts me to select a statement from the following.

Is there a way to fix this behaviour to what it was like in Eclipse Luna?

Upvotes: 3

Views: 639

Answers (1)

Positive Navid
Positive Navid

Reputation: 2781

I had the same experience and it was pretty annoying. But it was resolved by changing the preferences and adding more characters to "Auto activation triggers for Java".

To do so, please follow these steps:

  1. Click on "Windows" menu and select "Preferences".
  2. Search for Content Assist (Java > Editor).
  3. Change "Auto activation triggers for Java" based on your preferences. (The default is only ".", I usually change it to ".abcdefghijklmnopqrstuvwxyz").

The good thing about it is that you just need to press "Enter" after typing "syso" without pressing Ctrl+Space.

Reference: Java Content Assist Preferences

Upvotes: 2

Related Questions