How does code completion work ?
已回答
Hi!
I am trying to use code completion on a .java file. As I type the name of a variable of a class, the code completion popup shows a list of strings that translate into preformatted statements :

What I really want is to see the available class variables and methods on the interface Map. How do I do that ?
Thanks, regards
请先登录再写评论。
Hi Daniel,
Some plugins can alter the completion order. See if it helps to temporarily disable all of the downloaded plugins and restart the IDE: File | Settings | Plugins | ⚙ | Disable all downloaded plugins
If it doesn't help, try disabling the following bundled plugin and restarting:
Finally, check the settings under File | Settings | Editor | General | Code Completion. Specifically, machine-learning-assisted completion.
I did everyting you said, but the same suggestions appear.
No I don't. That's the problem. I just see the shortcuts to pasting code snippets.
See also https://www.jetbrains.com/help/idea/content-roots.html#jgbajl_8
That was it ! I didn't classify the root folder of the java files as being sources directory. After doing that it worked.
Thanks, regards