Eclipse autocomplete not working in some Java files

前端 未结 8 1593
深忆病人
深忆病人 2020-12-25 11:02

I have noticed that autocomplete is not working in some of java files in Eclipse. Also, the files where autocomplete is not working, display a hollow \"J\" as the icon for t

8条回答
  •  半阙折子戏
    2020-12-25 11:51

    In this following picture, MyClass.java has a hollow J, because it is explicitly excluded from the sources to build:

    alt text

    Could you go to the properties of the project, "Java Build Path" Section, "Source" tab and see if some exclusion filter has been set ?
    It is usual for instance to define:

    **/Test*.java
    

    to exclude at first building any unit-test class (when you have a large set of sources and do not want to be presented with Test classes during auto-completion, or do not want them considered during source searches).

提交回复
热议问题