简体   繁体   中英

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.

<\/h3>

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

<\/h3>

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 .jar<\/code> s until IntelliJ comes up with a better solution.

The only way you could do this would be to put the directory where file templates are stored under version control. That directory is the config/fileTemplates directory. See the document IntelliJ IDEA files locations (caches, plugins, logs) on different operating systems for the location of IntelliJ IDEA's config directory.

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.

"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM