Discussion:
Subfolders in file templates
Guillaume Racicot
2017-07-06 00:23:30 UTC
Permalink
Hi there,

I used file templates for a lot of cases and class types in my project.
They save me a lot of time writing similar classes.

However, I wanted to create a template for a module, which consist in my
project of two classes, three header files. The problem is that they must
be placed in subfolders. At first, I expected file templates to be able to
create those subfolders. In fact, when I tried to create the template,
paths seemed okay, but KDevelop told me that paths where not valid at the
end of the wizard ( which I expect to be because the subfolders didn't
existed yet ).

Would it be possible to have a file template that create subfolders? Thanks
for your response.
Aleix Pol
2017-07-06 17:43:07 UTC
Permalink
Post by Guillaume Racicot
Hi there,
I used file templates for a lot of cases and class types in my project. They
save me a lot of time writing similar classes.
However, I wanted to create a template for a module, which consist in my
project of two classes, three header files. The problem is that they must be
placed in subfolders. At first, I expected file templates to be able to
create those subfolders. In fact, when I tried to create the template, paths
seemed okay, but KDevelop told me that paths where not valid at the end of
the wizard ( which I expect to be because the subfolders didn't existed yet
).
Would it be possible to have a file template that create subfolders? Thanks
for your response.
Hi Guillaume,
It would be possible, patches welcome. :)

Aleix

Loading...