IntelliJ Code Completion not working for new Java classes

前端 未结 16 1897
挽巷
挽巷 2020-12-10 02:10

IntelliJ IDEA 13 has started exhibiting a very weird behavior in my local setup.

Namely, in any new Java class added to an existing project

相关标签:
16条回答
  • 2020-12-10 02:54

    I am using IntelliJ Ultimate 2017.1, and I encountered similar issue. Maven project, was trying to using selenium APIs, but the intellisense didn't pop up relative methods for me.

    Here is the way I solved my issue:

    Right click on your project src folder
    Choose Mark Directory As Then select Sources Root

    0 讨论(0)
  • 2020-12-10 02:56

    Ensure that you are not in Power Save Mode while running IntelliJ (File [menu] -> Power Save Mode checked or not). If Power Save Mode is enabled, IntelliJ will not run background tasks, including code completion.

    0 讨论(0)
  • 2020-12-10 02:57

    Cut the folder .idea and the files *.iml in the root folder and paste somewhere else out of project. when you re-open the project , auto import will work again magically.

    0 讨论(0)
  • 2020-12-10 02:57

    I had similar problem, nothing in this topic helped.

    So finally I made it work, I clear cache of IntelliJ and restart.

    File > Invalidate Caches / Restart.. > Invalidate Cache and Restart (button)

    0 讨论(0)
提交回复
热议问题