Using dagger, Im injecting fields a lot - so I created a live template for declaring an injected variable:
@Inject
lateinit var $var$: $TYPE$
In Java, a similar live template would automatically fill in repository as I specified the type to be Repository.
In Kotlin, however - it does not. But Im sure its possible?
Figured it out! Posting a screenshot as I think that explains it the best.

I have a slight variation on this that uses smart completion. The key thing that evaded me at first was making sure you re-order the variables so the TYPE is before the VAR. Otherwise the type will be empty.

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With