Eclipse 2021-09 Code Completion Not Showing All Methods and Classes

Eclipse 2021-09 code completion not showing all methods and classes

In Eclipse 2021-09 (4.21) everything of java.awt.* is filtered out in the content assist by default.

To disable this default filter, go to the preferences (Window > Preferences; in macOS in the application menu) Java > Appearance > Type Filters and uncheck the checkbox java.awt.*.

I reported it to Eclipse and it has been fixed within two weeks, so it will be in the next release Eclipse 2021-12 (4.22) that will be released on December 8, 2021 (and also sooner in the milestone builds starting with M2):

  • Eclipse bug 576549 - [content assist] Missing proposals in Swing, etc. because of java.awt.* type filter enabled by default.

Eclipse/Java code completion not working

Try restoring the default options in 'Windows > Preferences > Java > Editor > Content Assist > Advanced'

An example of the kind of data you see in this preference screen, however not necessarily what you currently have.

eclipse content assist setting

(From Vadim in this blog post " Content Assist Duplicates in Eclipse (Mylyn)":

if have duplicate Mylyn entries, uncheck the duplicate entries that do not contain "(Mylyn)" in their name)

The Eclipse help page defines the default list to restore:

Select the proposal kinds contained in the 'default' content assist list:

  • Other Java Proposals,
  • SWT Template Proposals,
  • Template Proposals,
  • Type Proposals

Eclipse autocomplete not working

The hot key combination ctrl+space might be conflict with other settings in system if you are using windows.

Try modify this combination like alt+/, i always use this one since the first time i knew eclipse. It works well.

Hope it works for you.

Eclipse proposals missing methods

Try Preferences-->Java-->Appearance-->Type Filters and disable all

Eclipse 2021-09 code completion not showing all methods and classes

In Eclipse 2021-09 (4.21) everything of java.awt.* is filtered out in the content assist by default.

To disable this default filter, go to the preferences (Window > Preferences; in macOS in the application menu) Java > Appearance > Type Filters and uncheck the checkbox java.awt.*.

I reported it to Eclipse and it has been fixed within two weeks, so it will be in the next release Eclipse 2021-12 (4.22) that will be released on December 8, 2021 (and also sooner in the milestone builds starting with M2):

  • Eclipse bug 576549 - [content assist] Missing proposals in Swing, etc. because of java.awt.* type filter enabled by default.


Related Topics



Leave a reply



Submit