@treepl team. I was looking through the backlog at https://treepl.co/public-backlog-state/request/add-format-to-code-editor . That item has four votes suprisingly. Anyway it got me to to thinking that somebody must already have build a tool for formatting in the ACE editor, and sure enough I found it. https://github.com/beautify-web/js-beautify
It looks like it’ll do HTML, CSS and JS. Here is a demo https://beautifier.io/
Not a feature that I’m really in the market for, but it seems like a few people need it.
(I imagine you have already come across this, but I just thought I’d mention it if you hadn’t)