Writing own Code Module Templates

Ranorex Studio, Spy, Recorder, and Driver.
rneuber1
Posts: 5
Joined: Wed Jul 04, 2012 2:14 pm

Writing own Code Module Templates

Post by rneuber1 » Wed Jul 04, 2012 2:21 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Writing own Code Module Templates

Post by Support Team » Thu Jul 05, 2012 1:34 pm

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

rneuber1
Posts: 5
Joined: Wed Jul 04, 2012 2:14 pm

Re: Writing own Code Module Templates

Post by rneuber1 » Thu Jul 05, 2012 2:55 pm

So there is no way of having multiple templates?
What is the dialog showing "Categories" and "Templates" good for?
You do not have the required permissions to view the files attached to this post.

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Writing own Code Module Templates

Post by Support Team » Fri Jul 06, 2012 3:17 pm

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