Live templates in intellij 14 rc2

Hi, i can not get my live templates to work in javascript with Intellij 14 rc.
Any suggestions? Is it a bug or something wrong in my settings.
I have no problems in Intellij 13.
(using os x 10.10)

6 comments
Comment actions Permalink

Hello.

Can you be more specific? E.g. I've created dummy.js file, type "us", Tab, and predefined template has been expanded. What doesn't work for you?

Regards,
Alexander.

0
Comment actions Permalink

Generally in  all .js files i do not get the live templates for javascript working.
E.g func, itar, iter and all other predefined/custom live templates templates for javascript.

0
Comment actions Permalink

Then please check Settings / ... / Live Templates. In javascript branch select any not working template. Please check its properties: "Applicable in" (at the bottom of the dialog) and "Expand with". Do they have proper values?

Regards,
Alexander.

0
Comment actions Permalink

Eg. func in javascript has javascript -> expression checked. If I change to (uncorrect?) statement it works.
As I can see it now it is just the Live Templates under javascript group that has expression checked that doesn't work.

0
Comment actions Permalink

"Expression" means expression context. If I type somethig dummy like:

var a = func(Tab)

Then it expands. So we can say that the issue is unexpected context preset for these templates, right? I'll try to investigate why is that.

Regards,
Alexander.

0
Comment actions Permalink

That explains it, just luck it worked in Intellij 13 then.
Never did check the applicable in... option.
Thanks for helping out!

0

Please sign in to leave a comment.