Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable 'Convert Java to Kotlin upon paste' in IntelliJ IDEA?

When IntelliJ IDEA detects I'm pasting a piece of copied Java code into a Kotlin file, it offers me to convert the pasted Java to Kotlin. This dialog contains a 'Do not ask again next time checkbox'. I checked this box and selected 'Yes', but now I want to undo my default choice. How do I do this?

I've looked and searched in IntelliJ IDEA's preferences, but haven't found the respective checkbox. Is it actually in the settings, or can I somehow reset default checkbox selections?

like image 568
Erik Avatar asked Dec 26 '17 22:12

Erik


People also ask

Does IntelliJ support Kotlin?

IntelliJ IDEA provides first-class support for Kotlin. It includes Kotlin-specific project templates, coding assistance, refactorings, debugging, analysis tools, and so on.


1 Answers

Preferences -> Editor -> General -> Smart Keys and somewhere down below you should find your checkbox (took me a while to find this, phew)

Convert Kotlin to Java

like image 104
Andrei Sfat Avatar answered Sep 21 '22 12:09

Andrei Sfat