File and Code Templates checkbox 'Enable Live Templates' goes unckecked when restarting Intellij Idea for custom templates

Hi,

I created a custom 'File and Code Templates' in 'Preferences > Editor'. The file is in js format and got this content :

(function (app) {
'use strict';

app.component(#[[$COMPONENT$]]#, {
templateUrl: #[[$TEMPLATE_URL$]]#,
controller: function () {
var self = this;

angular.extend(self, {
#[[$END$]]#
});
}
});
})(angular.module(#[[$MODULE$]]#));

I check the 'Enable Live Templates' checkbox and then click on 'Apply', then 'OK'

Everything works fine, I can create a file from my template and it asks me the differents parameters. But when I quit Intellij Idea and restart it. It does not work anymore, my template is created but I do not get asked the differents parameters.

When I go to the File And Code Templates menu, I can see that the 'Enable Live Templates' checkbox is unchecked. If I check it and click on apply, then it works again. But I have to go to Preferences and enable the checkbox for all my files templates everytime I launch Idea, how can I persist it ?

I'm on Mac OS X El Capitan (10.11.6) and I work with Idea :
IntelliJ IDEA 2016.2.2
Build #IU-162.1628.40, built on August 16, 2016
JRE: 1.8.0_76-release-b216 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o

Thank you in advance for your help.

0

Please sign in to leave a comment.