如何更改在 Kotlin 上生成的函数 TODO() 的主体?
How to change body of function TODO() generated on Kotlin?
我的代码稍后需要做一些事情,TODO()
自动生成会产生很长的注释,例如 follow
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
上面一行告诉我去File -> Setting -> File Template
改变它,但是TODO()
函数不存在这个选项。如何解决?
转到 Android Studio 中的首选项 window,select Editor -> File and Code Templates
,打开 Code
选项卡,您会在其中找到 New Kotlin Function Body
可以自定义。
我的代码稍后需要做一些事情,TODO()
自动生成会产生很长的注释,例如 follow
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
上面一行告诉我去File -> Setting -> File Template
改变它,但是TODO()
函数不存在这个选项。如何解决?
转到 Android Studio 中的首选项 window,select Editor -> File and Code Templates
,打开 Code
选项卡,您会在其中找到 New Kotlin Function Body
可以自定义。