Code prettier
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Code prettier
Please tell, is there an automatic code formatter in TestComplete? In order not to bother with indentations and for the whole team to write good code?
I've used Prettier before (https://prettier.io/), can I connect it as an external plugin?
Thanks.
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This may help you, particularly the Editing Options
https://support.smartbear.com/testcomplete/docs/reference/options/panels/code-editor/index.html
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, that's not what I was asking. What you offer is fine-tuning the look of what is written.
And I ask about the mechanism which would independently remove or add brackets, spaces, semicolons, etc., etc.
You see, our code will be checked - and everyone should write according to the generally accepted rules of writing JS code. And Prettier copes with this task perfectly. But unfortunately we have to copy blocks of text, check online on another resource, and paste into the code editor already formatted code. This is not convenient. I would like to be able to connect such a skin test mechanism directly to the Test Complete code editor.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can always ask Support directly at this link
https://support.smartbear.com/testcomplete/message
Marsha_R
[Community Hero]
____
[Community Heroes] are not employed by SmartBear Software but
are just volunteers who have some experience with the tools by SmartBear Software
and a desire to help others. Posts made by [Community Heroes]
may differ from the official policies of SmartBear Software and should be treated
as the own private opinion of their authors and under no circumstances as an
official answer from SmartBear Software.
The [Community Hero] signature is used with permission by SmartBear Software.
https://community.smartbear.com/t5/custom/page/page-id/hall-of-fame
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ok. Thanks
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
unfortunately, there is no such plugin now.
But good thing in Prettier that you can use it with commit hook:
https://prettier.io/docs/en/precommit.html
So, maybe it will be even more helpful to introduce guidelines for the whole team.
TestComplete QA Engineer
