Home > Net >  IntelliJ java autocomplete completely broken
IntelliJ java autocomplete completely broken

Time:09-22

So around 6 months ago, I stopped working on a Minecraft plugin that I used IntelliJ to work on. Now, I finally regathered all me Java knowledge, and am ready to code, but there's a problem. IntelliJ's autocomplete is barely working, only suggesting local functions/variables and basic keywords, ignoring all imports. On top of that, whenever I type code that would result in an error, the IDE does not mark it as an error. I have tried switching from JDK 8 to 11, restarting IntelliJ, restarting my computer, reinstalling IntelliJ, and deleting the .idea folder in my project. None of these things have worked, and I really do not want to use another editor.

  • I am using Windows 10
  • As mentioned above, I am using JDK 11
  • I am using the Community Edition of IntelliJ

CodePudding user response:

You may need to mark your source folder as a "Sources Root" by right-clicking it in the Project Hierarchy.

CodePudding user response:

You can try to do:

  • File | Invalidate Caches... | Invalidate and Restart
  • Close the IDE.
  • Delete the system directory. All your IDE settings except "Local History" will be preserved.
  • Delete all .iml files and the .idea folder from the project directory.
  • Re-import the project into IntelliJ from Existing sources.
  • Related