Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In IntelliJ Idea, can I manage code / file templates in Version Control?

I'm trying to determine if my organization can essentially manage and share an IntelliJ file template library across Git.

As far as I can tell, the only way to share these templates is by Import/Export Settings with .jar files, but I don't see how I can have this be automatically managed via VCS.

UPDATE:

Just found a plugin which looks like it might do what I want:

IntelliJ Configuration Server Plugin

Update 2:

Tinkered with this for a little bit, and read the comments. It seems kind of hokey - and sounds like its pretty buggy. It looks like I'll just be sharing .jars until IntelliJ comes up with a better solution.

As suggested by Mark Vedder, I've voted on "Make file templates per-project" in the IntelliJ ticket tracker, and so should you if you want to see a nicer solution to this.

like image 958
Zach Lysobey Avatar asked Nov 23 '22 09:11

Zach Lysobey


1 Answers

This is now possible the ticket has been solved. Just change Scheme to "Project" rather then "Default" when in the "File and Code Templates" dialog. The files will appear under ".idea\fileTemplates". Unfortunately it seems the only way to transfer files is by copying from the dialog and swapping schemes.

like image 111
Ben Avatar answered Feb 16 '23 01:02

Ben