FileTemplates doesn't save on disk

Answered

When i create FileTemplate via FileTemplateManager.addTemplate it available to use and in settings (Ctrl + alt + s  -> File and code templates), but templates doesn't save on disk. Seems like IDE keep changes in memory and sometimes save it to disk, but IDE often doesn't save templates even after closing it, so templates might be lost.

I tried to use FileTemplateManager.saveAllTemplates to force saving, but it doesn't help.

4 comments

Hi, it looks like a bug. Could you please submit it to YouTrack?

Currently supported way to add templates is to put a template file (e.g. "Foo.java.ft") into "/fileTemplates" directory in your plugin's jar.

0

Templates adds in runtime by user via my "Import action".

0
Could you please submit it to YouTrack?

Ok, i'll do it.

0

Please sign in to leave a comment.