Kotlin files have no highlighting or Icons in the Project window


#1

I’m working with some of the tutorials on getting Kotlin to work with spring, and now i’m seeing strange behavior when creating a new gradle Project with Kotlin.

When trying creating a new Kotlin file, there’s no syntax highlighting, nor any icon indicating the IDE is aware that it’s a Kotlin file:

I haven’t been able to find a similar issue here or in Stack Overflow. Any guidance would be greatly appreciated.

EDIT:
Even more peculiar, if i create the same class with a different name it works, but naming the file/class Greeting.kt causes the issue:


#2

You need to go to Settings | Editor | File Types and remove the incorrect association of the greeting.kt file name with the plain text file type.