Erik
Erik

Reputation: 1331

re enable intellij java to kotlin conversion

I disabled the intellij dialog asking for converting Java code to Kotlin code on copy paste code from Java to Kotlin thinking that it would always convert without asking, but now it never converts. How can I enable this dialog again? I couldn't find any way to do it and now the IDE is not converting Java to Kotlin on copy + paste anymore.

Upvotes: 9

Views: 4544

Answers (1)

Todd
Todd

Reputation: 31710

Open preferences (Windows = Ctrl-Alt-S, Mac = Cmd-,).

Go to Editor -> General -> Smart Keys and scroll to the bottom.

The Convert pasted Java code to Kotlin and Don't show Java to Kotlin conversion dialog during paste options should be in the Kotlin section

Upvotes: 13

Related Questions