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)
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.
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?
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.
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.
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.
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.
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.
"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.
That explains it, just luck it worked in Intellij 13 then.
Never did check the applicable in... option.
Thanks for helping out!