How to auto-import within method chaining for a live template?
已回答
Defining live template text...
timber.log.Timber.tagged("123").error { object{}.javaClass.enclosingMethod?.name ?: "unknown method" }
...we get this import...
import timber.log.Timber
...but not this one.
import timber.log.error
Is there syntax to allow dot chained invocation target auto-imports?
Thanks
请先登录再写评论。
This is not possible yet. Please, see https://youtrack.jetbrains.com/issue/KTIJ-21866.