code-template-tool icon indicating copy to clipboard operation
code-template-tool copied to clipboard

[Feature] Could templates support magical variables like: path datetime ...

Open chenxxzhe opened this issue 7 years ago • 6 comments

just like the variables supported in the Templates Path {home} {workspace} and so on

chenxxzhe avatar Apr 20 '19 04:04 chenxxzhe

@chenxxzhe I have no idea which magical variables are needed. Could you give some detailed suggestions?

yuanhjty avatar Apr 20 '19 10:04 yuanhjty

Variations of current Date is obvious. Author, Author Email, Author Link, Filename (name of the current file with name applied), Directory (destination). Just off the top of my head

SteinTheRuler avatar Aug 23 '19 19:08 SteinTheRuler

Actually, I think it's not very meaningful to have magical variables. Now days we have version control tools which are powerful enough to record various informations related to our codes.

yuanhjty avatar Sep 03 '19 14:09 yuanhjty

I agree with @SteinTheRuler with regards to at least the Directory (ideally relative to the workspace root) where the template was generated. This could be very beneficial in the output templates.

hairlesshobo avatar Nov 05 '19 20:11 hairlesshobo

I just think somebody would use this and would be a nice little feature

SteinTheRuler avatar Nov 06 '19 19:11 SteinTheRuler

I certainly would like to have at least author, filename, creation date and email as I use them in doxygen directives (@author etc.) for my documentation. author & email could be predefined in a settings directive...

casiso avatar Dec 08 '19 15:12 casiso