javaintellij-ideastatic-import

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


Solution

  • 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