I am trying to create a kotlin project with intellij idea But can't create kotlin file under src file

Viewed 117

I want to open a kotlin file on a blank screen and work. However, as seen in the 2nd image, the kotlin-file/class tab does not appear.

enter image description here

enter image description here

1 Answers

Inside the src folder you have a main folder, which is followed by a kotlin folder which will likely appear blue. This means it's a source root. IntelliJ will only allow you to create code files in a source root.

Source root example

Related