I don’t think so. But… you can copy your code, go to CodePen, paste it, hit the Tidy button, and copy paste back
Hahaha, as if I havn’t been doing that before! Thanks anyaway.
Maybe have a look at this: Beautify
This site also lists a lot of other resources. It might point to a plugin for your editor, depending on what you are using…
I had a quick peak and it looks promising. Thank you for the link.