Intellisense in IntelliJ no longer working

earthling picture earthling · Mar 19, 2014 · Viewed 54.5k times · Source

I'm currently running IntelliJ IDEA 13.1. While running IntelliJ 13 intellisense/autocomplete stopped working. I tried upgrading and it still doesn't work.

I can explicitly invoke code completion using ctrl+space. I looked in Settings->Editor->Code Completion and nothing looks out of place. Is there somewhere else that turns this feature on/off?

Answer

Loaf picture Loaf · Feb 2, 2017

For me it was because I did not have a folder marked as Source Root (it appears in blue).

To fix, right click your root source directory -> Mark As -> Source Root.