intellij idea - Creating a live template in Android Studio -


i'm trying create live template in android studio convert

"a string".smt 

to

someclass.somemethod("a string") 

by going preferences > editor > live templates i've created new live template. choose applicable in java: expression i've put smt abbreviation , following template text:

someclass.somemethod($string$) 

this works when type smt individually , creates

someclass.somemethod() 

but want put string directly method parameter. template doesn't come when type .smt following string. ideas?

postfix completion templates cannot created through ui. include custom logic , can implemented plugins.


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -