Page 1 of 1

Coding standard - how to customise generated code

Posted: Tue Mar 10, 2015 8:45 am
by Ceaser
hi,
I am new to Ranorex, and I have a query on the auto generated code.

I can see now the Auto generated code (UI Repository /add a module variable with Ranorex IDE...), is not aligned with our Coding Standard/Guidelines.

In Ranorex, do we have a flexibility to customize the generated code to our coding standard?

Regards,
Ceaser

Re: Coding standard - how to customise generated code

Posted: Wed Mar 11, 2015 11:36 am
by Support Team
Hello Ceaser,

Welcome to Ranorex.

You can modify code generation options within the global options dialog.
Just open:
  • • Ranorex Studio
    • Tools
    • Options
    • Coding
Regards,
Robert

Re: Coding standard - how to customise generated code

Posted: Thu Mar 12, 2015 6:26 am
by Ceaser
hi Robert,
I have tried and now I am able to change the Module variable.
Still the UI repository code generated naming convention I am not able to customize
for eg. the private member starts with '_' (underscore), instead can we change to 'my'


Regards,
Ceaser

Re: Coding standard - how to customise generated code

Posted: Fri Mar 13, 2015 9:44 am
by Support Team
Hi Ceaser,

The code generation of the repository entries is handled internally and cannot be changed.

Regards,
Robert