FileTemplates doesn't save on disk


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.


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. "") into "/fileTemplates" directory in your plugin's jar.


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

Could you please submit it to YouTrack?

Ok, i'll do it.


Please sign in to leave a comment.