No File Templates documentation in Platform SDK DevGuide

已回答

Hi,

I'm investigating some issues with creating File Templates programmatically, and I've noticed that the dev guide, although has a section for File Templates, it is inactive (under https://jetbrains.org/intellij/sdk/docs/basics/templates.html), so all information has to be gathered from community posts scattered all over the forum.

Is there a specific reson why the related section of the documentation is inactive? It hasn't been written yet, it is enabled only for certain users, or maybe something else?

I would appreciate your answer. Thank you.

 

 

0

Tamás,

Thank you for asking this question - unfortunately, some parts of the documentation are still in progress. Grayed/disabled elements just indicate that we have such a topic planned to be provided in the future.

In general, providing File Templates is quite straight forward and requires to add iternalFileTemplate extension point to be provided with a proper file located in the resources/fileTemplates/internal/ directory. Check groovy-templates.xml for more details.

0

Thanks Jakub!

I managed to solve it by moving my file template into the src/main/resources/fileTemplates folder (not within /internal) and I don't even need the internalFileTemplate extension point or any other.

0

请先登录再写评论。