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

时光怂恿深爱的人放手 提交于 2021-02-18 18:47:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!