As a Software engineer and web dev/designer. It is done manually. Yes of course there are some tools which CAN help with that stuff but it will be way to generic.
Clean readable code is so awesome. And you need to do it yourself to make it look amazing.

There are coding standards to follow which help out drastically for universal understanding and cleanliness.