Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 251
Jeff Avatar asked Jul 31 '26 20:07

Jeff


1 Answers

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

like image 67
Positive Navid Avatar answered Aug 02 '26 10:08

Positive Navid



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!