kevinarpe kevinarpe - 1 year ago 118
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download