Why can't I see whole items of live template?
Hi.
Following is a content of Live Templates.
It has fifteen items in Objective-C group.
But when I call the live templates feature by pressing cmd + j, I can see only nine items.
How must do I to see whole items?
请先登录再写评论。
Image was distorted..
Please click the image and see.
It is because some of the templates have specific context, e.g. prop-family templates are only available in context of class interface.
log, each and other templates are available in context of statements.
You can see it under the templates' body - 'Applicable in...' text.
Thanks Anton.
But additional question has been occured.
I made a snippet code, and adding it to live templates. content of template text is LSLog("TEST");
I specified a abbreviation to 'atest'.
When I wrote 'atest' in editor, I could find a item of 'atest' in autopopup.
But when I changed a abbreviation from 'atest' to 'ztest' and wrote 'ztest' in editor, 'ztest item was not revealed.
Why does work like this?
This is, probably, because of incorrect context.
Can you please show the screenshot ot the ztest template's settings?
This is screen shots.






Click following images.
Next, change to 'atest' image.
Lim, this behavior is intentional.
When you see the template in the completion, it is only to tell you, that 'Tab' in this context will behave differently - it will not insetr the selected item in the list, but, rather, the live template.
So, simply type 'ztest' and press TAB tp expand the template, or to see the full list of templates, press Cmd+J.
Okay.
I will use the way which type a abbreviation name and press 'TAB'.
It seems nice feature.
Anton, have a nice day!