https://kotlinlang.org logo
Title
r

ravikumar

05/20/2017, 11:34 AM
Copy & pasting a kotlin code in IntelliJ(2017.2EAP) creates a java file instead of kotlin file. Am I missing something or that support is not yet added?
v

voddan

05/20/2017, 12:58 PM
ravikumar: no, you have to past into an existing kotlin file to have a conversion
r

ravikumar

05/20/2017, 1:17 PM
@voddan I'm not trying to convert from Java to Kotlin. Say I have a
data class Person
inside another class, I want to move this into a separate class, copy and pasting the data class creates 'Person.java' instead of 'Person.kt'
y
v

voddan

05/20/2017, 2:29 PM
Wow, yet another IJ feature I didn't know about 0_o