如何禁用IntelliJ IDEA中的“粘贴后将Java转换为Kotlin"? [英] How do I disable 'Convert Java to Kotlin upon paste' in IntelliJ IDEA?
问题描述
当IntelliJ IDEA检测到我要将一段复制的Java代码粘贴到Kotlin文件中时,它使我可以将粘贴的Java转换为Kotlin.该对话框包含一个下次不再询问"复选框.我选中了此框并选择是",但是现在我要撤消默认选择.我该怎么做?
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?
我已经查看并搜索了IntelliJ IDEA的首选项,但是没有找到相应的复选框.确实在设置中,还是可以以某种方式重置默认复选框选择?
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?
推荐答案
Preferences -> Editor -> General -> Smart Keys
,在下面的某个位置,您应该找到您的复选框(花了点时间找到我,)
Preferences -> Editor -> General -> Smart Keys
and somewhere down below you should find your checkbox (took me a while to find this, phew)
这篇关于如何禁用IntelliJ IDEA中的“粘贴后将Java转换为Kotlin"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!