hi - does anyone know how to get the optimize impo...
# intellij
t
hi - does anyone know how to get the optimize imports in kotlin classes that import java stuff using alphabetical order? it seems to always put the java stuff at the bottom no matter what:
Copy code
package example

import io.javalin.Javalin
import org.jetbrains.exposed.sql.Database
import java.util.UUID // for some reason at bottom after optimize imports

class Example {
    fun myFun() {
        Database.toString()
        Javalin.create().toString()
        UUID.randomUUID()
    }
}
s
the Kotlin team has intentionally taken a more prescriptivist approach to the code styling options in the IntelliJ plugin - you’ll notice there are preferences in the Java section that aren’t present in the Kotlin one. This is apparently done in order to convey an unambiguous notion as to how the language should look across organizations and users
a
t
Thanks, voted