When I implement methods from interface by hitting Alt + Enter, the implement method should be at the bottom of class. But in Kotlin, it stays on the top (as you can see the method showToast). It is inconvinient because it is above onCreate and I also want to remove the //TODO comment when I implement methods automatically!
And normally, when I write logi in Java, Android studio automatically generates Log.i(TAG, ..) but it seems not to work in Kotlin
Can anyone show me how to do that. Thanks
To avoid Todo comment follow below mentioned steps
File -> Setting
(That will bring new window in front)Editor -> Code Style -> File and Code Template
Code
tab from the right panelYou will not get any todo comment line in overriding method now. hope that helps you
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With