Keen Sage
Keen Sage

Reputation: 1959

Organize static imports before before import in IntelliJ

I am new to IntelliJ. I am currently facing an issue where I want to organize the static imports before the general import (Similar to the coding guidelines we have in eclipse). I could not find the setting to do so. Not having this would create unnecessary modification in each commit as developers in my team use either Eclipse or IntelliJ.

Thanks

Upvotes: 4

Views: 4471

Answers (2)

Meo
Meo

Reputation: 12511

Use Eclipse Code Formatter plugin.

Upvotes: 1

Javaru
Javaru

Reputation: 31996

Settings > Code Style > Java > "Imports" Tab > Import Layout (near the bottom)

More info at: https://www.jetbrains.com/help/idea/2016.2/code-style-java.html#d48088e1314

Upvotes: 5

Related Questions