简体   繁体   English

如何在 IntelliJ IDEA 中禁用“粘贴时将 Java 转换为 Kotlin”?

[英]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.当 IntelliJ IDEA 检测到我将一段复制的 Java 代码粘贴到 Kotlin 文件中时,它允许我将粘贴的 Java 转换为 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.我查看并搜索了 IntelliJ IDEA 的首选项,但没有找到相应的复选框。 Is it actually in the settings, or can I somehow reset default checkbox selections?它实际上是在设置中,还是我可以以某种方式重置默认复选框选择?

Preferences -> Editor -> General -> Smart Keys and somewhere down below you should find your checkbox (took me a while to find this, phew) Preferences -> Editor -> General -> Smart Keys ,在下面的某个地方你应该找到你的复选框(我花了一段时间才找到这个,呸)

将 Kotlin 转换为 Java

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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