Ask a Question

How to format jscript code in Test Complete IDE

aniket
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 13

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
aniket
Occasional Contributor

Bump!



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

Hi Aniket,



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

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.

One year later Smiley Happy

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

 

 

Hi,

 

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

 

br Andreas

djt
Occasional Contributor

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

cunderw
Community Hero

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

Great - how do I install / activate it ?

 

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

cancel
Showing results for 
Search instead for 
Did you mean: