Programmatically add live templates or fetch from outside of resources folder at runtime

Hi there,

I'm writing a plugin that would like to fetch live template xml files from a REST API. All the plugins I have seen put their template files under resources folder and implemented DefaultLiveTemplatesProvider. Is there a way to register and delete live templates programmatically at runtime? 

Any help would be appreciated~! 

Thanks 

0
3 comments
Avatar
Permanently deleted user

Hi 

 anyone please answers this question. hence I develop the plugin which adds code to live template but did not find any API which can insert live template from the plugin and gets all existing templates to show.

0
Avatar
Permanently deleted user

Any luck with this idea? I am looking for something similar.

0
Avatar
Permanently deleted user

I would also want some easy way to do this. I generate bunch of live templates programmaticaly and so far I've found only that I can copy them into config folder and restart IDEA..

0

Please sign in to leave a comment.