File templates using other template?

Answered

From a file template, is it possible to use another template (live template?) from e.g. a parameter?

The scenario is to use an existing header template (live template) in a file template to store the header text in a single location.

Regards
Magnus

3 comments
Comment actions Permalink

Hello Magnus!

 

Than you for contacting us.

Why won't use R# File Header feature - https://www.jetbrains.com/help/resharper/Reference__Options__Languages__Common__File_Header_Text.html?

It is stored in one place and can be easily inserted in file template.

 

0
Comment actions Permalink

Hi!

Sorry for my late reply...

That was what I was looking for! Setting a Common File Header and re-using that in a Live Template will both add correct file header in new files and in all of our old files we can use the Live Template to insert the same file header.

Thanks for helping me out! :)
Magnus

0
Comment actions Permalink

You are welcome!

Please feel free to contact us in case of any questions or problems.

0

Please sign in to leave a comment.