James123
James123

Reputation: 33

Syntax Highlighting, error detection and method navigation for Java not working in IntelliJ

I have imported the project into the intellij and what I have found is that the Syntax Highlighting, error detection and method navigation for Java not working in IntelliJ.

I have tried many ways

  1. File->Invalidate Cache Restart
  2. Rebuild etc.
  3. File->Mark directory as source root(It shows all the project in red colour)

But none of them are successful.

Upvotes: 0

Views: 524

Answers (1)

David
David

Reputation: 1202

Make sure that all of your classes are under the module Content Root, and mark the root Source Root.

Source

Upvotes: 1

Related Questions