Page 1 of 1

Writing own Code Module Templates

Posted: Wed Jul 04, 2012 2:21 pm
by rneuber1
When adding a new code module, the template from C:\Program Files (x86)\Ranorex 3.3\RanorexStudio\AddIns\AddIns\Misc\RxSharpdevelop\Templates\Files\CSharp\UserCodeModule.xft
is used.
I tried to clone this file and create my own template but it does not appear in the Ranorex Studio IDE.

Is there a way for such an approach, i.e. can I use my own templates?

\Ralf

Re: Writing own Code Module Templates

Posted: Thu Jul 05, 2012 1:34 pm
by Support Team
Hello Ralf,

If you want to use your own template you have to delete or to rename the original template.
Then you have to save your template into the directory C:\Program Files (x86)\Ranorex 3.3\RanorexStudio\AddIns\AddIns\Misc\RxSharpdevelop\Templates\Files\CSharp.
The name of your template must be the same as the name the original Ranorex template (UserCodeModule.xft).

Regards,
Bernhard
Ranorex Support Team

Re: Writing own Code Module Templates

Posted: Thu Jul 05, 2012 2:55 pm
by rneuber1
So there is no way of having multiple templates?
What is the dialog showing "Categories" and "Templates" good for?

Re: Writing own Code Module Templates

Posted: Fri Jul 06, 2012 3:17 pm
by Support Team
Hello Ralf,

Insert your templates in addition into the CSharp directory.
Restart Ranorex after that and use Add -> New Item on your project to select the template you added.

Regards
Bernhard
Ranorex Support Team