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)

0

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
Avatar
Permanently deleted user

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

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
Avatar
Permanently deleted user

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

"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
Avatar
Permanently deleted user

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

0

请先登录再写评论。