https://kotlinlang.org logo
#intellij
Title
# intellij
r

reactormonk

03/07/2024, 3:32 PM
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

Sam

03/07/2024, 3:35 PM
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.
2 Views