Code template
Answered
Hi there,
I would like to add a template which would be editable via Editor / File and Code Templates / Code
If I add file to resources/fileTemplates they will be added to "new file" menu, which is not what I want.
If I add them resources/fileTemplates/internal, the user will not be able to modify them.
Please sign in to leave a comment.
See org.jetbrains.idea.devkit.DevKitFileTemplatesFactory as sample, the file templates are located under /fileTemplates/j2ee
Thank you Yann!
So, steps to create subj:
1. place templates to `resources/fileTemplates/j2ee/`
Files should have extension "*.ft", i.e. if referencing file name is "Module Command.php", it should be located at "resources/fileTemplates/j2ee/Module Command.php.ft"
2. Create the templates factory, i.e.
3. Refer to the template in code using getJ2eeTemplate: