I want to write a live template for adding viewmodel in my android project
val viewModel: SomeViewModel by viewModels()
I know that you can enter full path to some class, object etc and IDE would be automatically shorten these full paths when using template in your code. This however wouldn't work in this case since viewModels()
is an extension function. Is there any alternative way for achieving such live template?
Tried to search if anyone had similar issue, unfortunately didn't find anything useful. One suggested post was about same issue, but no answer there