Templates with multiple files
Some programming patterns and frameworks require a set of related files, usually with a very specific structure.
In PyCharm, you can create sets of related files by adding child templates to a file template. When you create a file from such a template, it will also create files from child templates.
In the Settings dialog (CtrlAlt0S) , select Editor | File and Code Templates.
Create the main file template.
On the Files tab, click and specify the name, file extension, and body of the template.
Select the new template in the list and click on the toolbar. Specify the name, file extension, and body of the child template.
note
All child templates share the variables of the main file template.
You cannot add child templates to the default file templates.
Thanks for your feedback!