kevinarpe kevinarpe - 1 month ago 7
Java Question

How to disable automatic Java static imports?

A recent version of IntelliJ (16+ EAP) started automatic Java static imports.

To be clear: I am OK with non-static imports.

Can I disable only static imports?

Answer

There are checkboxes for controlling automatic importing at File | Settings | Editor | General | Auto Import. Now there's only one, but in the next EAP, there will be separate ones for class and method/field imports.

After IDEA 2016.2.1, it's controlled by Show import suggestions for static methods and field checkbox.