AndroidStudio -->preferences-->Live template-kotlin-->右侧+ --> Live template-->编辑名称.
eg:Log.i("TAG", "methodName") -->
android.util.Log.d("TAG", "$METHOD_NAME$")-->
点击Eidt variables-->点击Expression,选择kotlinFunctionName复制代码
转载于:https://juejin.im/post/5cf0fb00e51d4577407b1cd3