Intellij idea IntelliJ不会对Kotlin导入进行排序

Intellij idea IntelliJ不会对Kotlin导入进行排序,intellij-idea,kotlin,intellij-14,Intellij Idea,Kotlin,Intellij 14,编写Java代码时,IntelliJ会自动按名称对导入进行排序。但是,当导入Kotlin中的成员时,它们仍然未排序。选择代码→ 优化导入(Ctrl+Alt+O)不起任何作用 以下是一个例子: import kotlin.platform.platformStatic import java.text.DateFormaty import org.hibernate.validator.constraints.NotEmpty as notEmpty import com.fasterxml.ja

编写Java代码时,IntelliJ会自动按名称对导入进行排序。但是,当导入Kotlin中的成员时,它们仍然未排序。选择代码→ 优化导入(Ctrl+Alt+O)不起任何作用

以下是一个例子:

import kotlin.platform.platformStatic
import java.text.DateFormaty
import org.hibernate.validator.constraints.NotEmpty as notEmpty
import com.fasterxml.jackson.annotation.JsonProperty as jsonProperty
import javax.validation.constraints.NotNull as notNull
import javax.validation.Valid as valid
我期待的是:

import com.fasterxml.jackson.annotation.JsonProperty as jsonProperty
import org.hibernate.validator.constraints.NotEmpty as notEmpty
import kotlin.platform.platformStatic
import java.text.DateFormat
import javax.validation.constraints.NotNull as notNull
import javax.validation.Valid as valid
我正在将IntelliJ 14.0.2与Kotlin插件(版本0.10.195)一起使用。

这已在中修复,例如(在编写2017.3.3时)


如果您只有IntelliJ 14完整版本的永久回退许可证,您仍然可以使用更新版本的社区版。

您的观察是正确的。此功能尚未实现:此问题已根据YouTrack解决。@JaysonMinard似乎仍未解决或我遗漏了什么?@miensol您是否更新了Kotlin插件?我觉得应该关闭此插件,但我找不到正确的原因。这基本上只是InteliJ中的一个bug,这不是一个你可以自己纠正的问题。