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

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -