Is there a way to manually trigger java to kotlin ...
# intellij
r
Is there a way to manually trigger java to kotlin transformation over a code snippet? The convert on paste doesn't always work well with the vim plugin.
s
If you have a
.java
file, there'll be a menu item under
Code
>
Convert Java file to Kotlin file
. I don't think there's a way to trigger the conversion from within an existing
.kt
file. After all, it wouldn't be a valid
.kt
file if it had Java code in it.