How do I arrange imports alphabetically in IntelliJ?

How do I arrange imports alphabetically in IntelliJ?

Under the Import Layout header in Preferences | Editor | Code Style | Java, you can change the order of imports. Except for java, imports are arranged alphabetically by default. Go to File > Options > Settings. Imports tab in Editor > Code Style > Java. Delete all entries from the table “Import Layout.” Click OK.