What have you found to be the best way to format your ASP.NET markup files (aspx, ascx) for readability? Any tips and/or tricks?
I’m looking for comments on indentation, line-wrapping, naming schemes, <%-- --%> commenting, or whatever you can think of.
I usually just use ctrl+k, ctrl+d shortcut in Visual Studio and let it format my code for me.
You can customize the way Visual Studio formats the code by going to Tools -> Options -> Text Editor -> HTML -> Format
However, when there are a lot of attributes in an element I usually organize the elements like this: