Android Studio working pattern does not work

I created a "Live" template in the "User" template group. I assigned the abbreviation "setpref". It is listed on my Live Templates list, but it is not available when I type "setpref" in the code window. I suppose I missed something obvious, but I can’t understand that. Any ideas?

+4
source share
2 answers

Please make sure that you have correctly specified the context for your live template (the set of languages ​​in which it is available).

+4
source

To create Live Templates again, do the following:

1) Open Editor> Live Templates

2) , 4-6

3) "", " ..."

4) Java select , logd, logm, logw .. .

5) , , logt, .

!

- https://www.reddit.com/r/androiddev/comments/3n9nis/issues_with_live_templates_in_android_studio_try/?st=j0pjkc4w&sh=e84eb254

!:) .

+2

All Articles