Eclipse is a favorite Java IDE for many programmers. Its code auto completion (or content assist) feature is very helpful and indispensable. Just type some initial words and press Ctrl + Space, and Eclipse will provide suggestion based on the current context, as depicted below:

Eclipse Java code suggestion working

However, there can be times when you face an issue with Eclipse’s auto-complete feature, i.e., it’s not working: press Ctrl + Space doesn’t show up anything (No default proposals):

Eclipse Java code completion not working

The solution to fix this problem is very simple. In Eclipse IDE, go to the menu Window > Preferences. In the Preferences dialog, go to Java > Editor > Content Assist > Advanced. Then check the option “Java Proposals” in the first list, as depicted in the following screenshot:

Solved eclipse auto completion not working

NOTES: Do not check both options Java Proposals and Java Type Proposals because it will create duplicate code suggestion.

That’s a simple tip to solve the issue of Java code auto-completion not working in Eclipse IDE. I hope you find this post helpful. Check more posts about Java development with Eclipse IDE below:

 

Learn more about using Eclipse IDE:


About the Author:

is certified Java programmer (SCJP and SCWCD). He began programming with Java back in the days of Java 1.4 and has been passionate about it ever since. You can connect with him on Facebook and watch his Java videos on YouTube.



Add comment