Kotlin: How can I let Android Studio implement interface's function at bottom of class

Viewed 1137

When implementing an interface in a Kotlin class:

When I press Alt+Enter on ClassName I can have the IDE add an interface's functions via 'implement members'.

It's kind of annoying that in Kotlin these functions are added at the top of the class. I would like them to be added at the end of the class (just like in Java).

How can I do that?

2 Answers

On Android Studio 3.2: You can specify the desired location using the pointer, and use CTRL+I keymap. Then you need to choose the necessary methods, and Studio place them into your point position.

Related