Return to site

๐Ÿ‘จ๐Ÿป๐Ÿ’ปIntelliJ IDEA: How to disable wildcard imports?

ยท intellij

To modify the way IntelliJ deals with auto imports you need

to open the Settings dialog (๐—–๐˜๐—ฟ๐—น+๐—”๐—น๐˜+๐—ฆ)

and navigate to the ๐—˜๐—ฑ๐—ถ๐˜๐—ผ๐—ฟ | ๐—–๐—ผ๐—ฑ๐—ฒ ๐—ฆ๐˜๐˜†๐—น๐—ฒ | ๐—๐—ฎ๐˜ƒ๐—ฎ | ๐—œ๐—บ๐—ฝ๐—ผ๐—ฟ๐˜๐˜€ ๐˜๐—ฎ๐—ฏ.

broken image

  In this dialog, you need to check the Use single class import option.

You'll also need to change the default limit for

๐—–๐—น๐—ฎ๐˜€๐˜€ ๐—ฐ๐—ผ๐˜‚๐—ป๐˜ ๐˜๐—ผ ๐˜‚๐˜€๐—ฒ ๐—ถ๐—บ๐—ฝ๐—ผ๐—ฟ๐˜ ๐˜„๐—ถ๐˜๐—ต '*'

and

๐—ก๐—ฎ๐—บ๐—ฒ๐˜€ ๐—ฐ๐—ผ๐˜‚๐—ป๐˜ ๐˜๐—ผ ๐˜‚๐˜€๐—ฒ ๐˜€๐˜๐—ฎ๐˜๐—ถ๐—ฐ ๐—ถ๐—บ๐—ฝ๐—ผ๐—ฟ๐˜ ๐˜„๐—ถ๐˜๐—ต '*'

from 5 to a big enough threshold such as 999.