Autocompletion for Map<k, v>

Answered

If I type "private Map<>", as soon as I'm typing a capital I inside <>, some suggestions pop up (see screenshot below). They are valid suggestions, however, they don't seem to be intelligent at all, because, if I type a capital I at this place, the probability of me intending to create a Map with IllegalAccessError (or any of the other suggested Exceptions) as the key  is very close to zero, however, the probability of me intending to use Integer as the key is almost 100%

Am I doing something wrong or is there a setting that I could change?

Environment:

IntelliJ IDEA 2019.1.3 (Ultimate Edition)
Build #IU-191.7479.19, built on May 28, 2019
JRE: 1.8.0_202-release-1483-b58 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

0
1 comment

Do the options change after you complete Integer several times? IDE should learn from what you are using the most.

0

Please sign in to leave a comment.