Convert java to kotlin on paste

末鹿安然 提交于 2020-02-21 10:14:05

问题


So I checked "Don't show this dialog next time", but it turns out that it will then never convert the code again.

Where do I remove the checkmark again so I can get back to converting the java code to kotlin when pasted?

Thanks in advance.

https://developer.android.com/kotlin/get-started.html#convert-to-kotlin-code


回答1:


Preferences -> Editor -> General -> Smart Keys -> Scroll to the end -> Convert posted Java code to Kotlin




回答2:


In my case I needed to have the "Do you want to convert ..." dialog again, despite the option to convert checked.

  1. Preferences -> Editor -> General -> Smart Keys -> Scroll to the end -> Convert posted Java code to Kotlin (checked)
  2. Preferences -> Editor -> General -> Smart Keys -> Scroll to the end -> Don't show Java to Kotlin conversion dialog on paste (unchecked)
  3. File -> Invalidate Caches / Restart


来源:https://stackoverflow.com/questions/47125145/convert-java-to-kotlin-on-paste

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!