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?
In IntelliJ IDEA 2017.1.5, I solved this by increasing the numbers here:
Settings -> Editor -> Code Style -> Java ->
Class count to use import with '*': 50
Names count to use static import with '*': 30
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With