问题
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?
回答1:
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.
来源:https://stackoverflow.com/questions/55834530/how-to-change-body-of-function-todo-generated-on-kotlin