cancel
Showing results for 
Search instead for 
Did you mean: 

How to format jscript code in Test Complete IDE

Occasional Contributor

How to format jscript code in Test Complete IDE

I have my Test complete 8.20 project in JScript. As project is growing so the test files and the code.



Unlike other IDE's, Visual Studio or Eclipse there is no code formatting option in Test Complete IDE.



Is there any extension or easy way to format my code. Right now only way I can think of is to copy code to other formatter and then paste it back to Test Complete.
13 REPLIES
Moderator

RE: How to format jscript code in Test Complete IDE

Hi Aniket,



Currently, there's no such built-in feature in TestComplete. I have registered your request in our DB as a suggestion. Thanks!
--
Best regards,
Alexey
Occasional Contributor

RE: How to format jscript code in Test Complete IDE

Bump!



It is difficult do the manual indentation. Is there any plan to add this in near future releases? Thanks
Moderator

RE: How to format jscript code in Test Complete IDE

Hi Aniket,



The feature hasn't been implemented yet, and I cannot share any information regarding whether or when it will.
--
Best regards,
Alexey
Contributor

RE: How to format jscript code in Test Complete IDE

I know this is an old post... but for those that come along later I would recommend using http://jsbeautifier.org/. It will automatically format your code and there are options you can tweak to change indent levels, spaces, etc. It's not as easy as having it in the editor but copy/paste, CTRL+ENTER, copy/paste is not too bad... I use it all the time.
Occasional Visitor

Re: RE: How to format jscript code in Test Complete IDE

One year later Smiley Happy

Are there any plans to include code formatting in the future/is there a plugin available?

 

 

New Contributor

Re: RE: How to format jscript code in Test Complete IDE

Hi,

 

this feature will be great, please include code formatting to your IDE.

 

br Andreas

djt
Occasional Contributor

Re: RE: How to format jscript code in Test Complete IDE

I was looking for this too so as a workaround I load the files into Visual Studio Code (which is free) and use the auto indent tool there

Highlighted
Community Leader

Re: RE: How to format jscript code in Test Complete IDE

A while back someone ported over a formatter to work in TC as a script extension. I can't find the original post so I can't give proper credits, but attached is a zip of the extension files.


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
djt
Occasional Contributor

Re: RE: How to format jscript code in Test Complete IDE

Great - how do I install / activate it ?

 

The help file says to double click on a tcx file ????

Share Your Stories
Read Latest News
Top Kudoed Authors