Cannot contribute description to custom file templates

Hello Jetbrains community

I've noticed the FileTemplate description textarea is read-only.
I would like to author a description for my custom file templates.
What are the reasons for setting up this text area as read-only for user defined file templates?
Could I file a isssue for this?

Best regards

4 comments
Comment actions Permalink

There is no place where this description could be displayed other than the settings dialog itself, and also our current storage architecture for user-created file templates does not provide a place for the description to be stored. You're welcome to file an issue, but I can say immediately that we consider it a very low priority feature.

0
Comment actions Permalink

Thank you Dmitry

Personally I have the feeling file template support requires a revamp, which IMHO should have a high priority.
I  filed a feature request about this - http://youtrack.jetbrains.com/issue/IDEA-77726.

IMO a memory tester could definitelly  include remember the meaning of each and every parameter of an custom file templates (containing a couple of  them).
So, consider this an exercise and try to create a new file template with a couple of parameters and then try to use it after a week or so and if you remember the meaning of its parameters you are asked for, then your have a great memory, and I will congrat you for that.
But this is not my case, so I hardly remember the meaning for each and every parameters. And because of that I thought the description  could help me, while I am using it. But beacause this custom file templates contributes to different UI I think this is not an easy task.

Note: I have switched from Eclipse recently so if you consider I am missed smth important in that matter please let me know.

Best regards

jtonic

0
Comment actions Permalink

OK, so providing descriptions for parameters is indeed a more meaningful use case than providing a description for a file template as a whole.

0
Comment actions Permalink

Yes, you are right.

Moreover, if custom live template parameters had the same support as live templates paramaters the whole live templates support would be better.
For instance I created a live template for log4j.properties and I'd like to have autocomplete for package, log level while I am using this file template.

Maybe there are no so much Idea users that havily use custom file templates mechanism (so that the issue I've filed definitelly will have a lower priority) but for me this autocomplete support (+ preview ) would be great.

Thank you.

0

Please sign in to leave a comment.