Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ does not recognize kotlin file after deleting it and recreate with the same name

I am currently having a problem with IntelliJ. I am using Kotlin in my project. I have deleted a file (let's say test.kt), and now, I want to create a new file with the same name. IntelliJ does not recognize the kotlin syntaxe and show it as a text file.

When I have deleted I have unchecked "safe delete" and "Search in comment and strings"

Can anyone help me in this matter ?

Edit : I tried to delete .idea and .iml file, restart intelliJ. It does not change anything.

like image 321
Thomas Betous Avatar asked Sep 03 '17 09:09

Thomas Betous


People also ask

Is IntelliJ built with Kotlin?

IntelliJ IDEA is an integrated development environment (IDE) written in Java for developing computer software written in Java, Kotlin, Groovy, and other JVM-based languages.


1 Answers

"Overrid File Type" to Kotlin would work.

like image 171
sngjuk Avatar answered Oct 27 '22 11:10

sngjuk