Abner Escócio
Abner Escócio

Reputation: 2785

How to change body of function TODO() generated on Kotlin?

I need leave something to do later on my code and TODO() auto generated produces a very long comment like follow

TODO("not implemented") //To change body of created functions use File | Settings | File Templates.

The above line tell me to go to File -> Setting -> File Template to change it, but this option not exists to TODO() functions. How to solve it?

Upvotes: 3

Views: 2366

Answers (1)

Dominik G.
Dominik G.

Reputation: 700

Go to the Preferences window in Android Studio, select Editor -> File and Code Templates, open the Code tab, there you will find an option for New Kotlin Function Body which you can customize.

Upvotes: 8

Related Questions