Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 868
Rik van Velzen Avatar asked Jul 27 '17 12:07

Rik van Velzen


1 Answers

Right now there is no possibility to control the order of the methods. Please watch the corresponding issue to get notified when this is implemented.

like image 90
yole Avatar answered Oct 12 '22 17:10

yole