Monday, March 25, 2013

IntelliJ Tip - Imports Code Styles

One of the coding standards I follow is that all imports must be fully qualified. Out of the box, IntelliJ 12 has is configured so that if I import more than 3 classes from a package then those imports are collapse into one import ending in '*'.

To fix this do :

In IDE, click the wrench icon on top toolbar.
Then pick Code Style / Java and then 'Imports' tab

Set "Class count to use import with '*': to '999'.

No comments: