简体   繁体   中英

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM