Is it possible to auto-format your code in Dreamweaver like in Visual Studio (ctrl+k+d)
Commands > Apply Source Formatting.
Works a treat.