views:

74

answers:

3

I have been searching the web for a beautifier for ASP .NET code and could not find one.

The closes that I have found is in this site but it is for Php:

http://www.smashingmagazine.com/2007/07/12/time-savers-code-beautifier-and-formatter/

Any ideas?

+2  A: 

For HTML, check out HTML Tidy.

For .Net code, check out Resharper and StyleCop.

Martin
+1 for Resharper.. Great tool
Mahin
edited and added Resharper link...
Mitch Wheat
R# is great but not free. But worth every penny.
Vadim
I agree Resharper is a great tool.
Chuck Conway
Yeah, Resharper is not free. I forget because my company gives it to me for free :)
Martin
+1  A: 

To enforce code style so developers will not write "ugly" code to start with you can use StyleCop. I also would add FxCop to your tool belt (Download link).

Vadim
+5  A: 

For HTML, just press Ctrl+K,Ctrl+D . It's a bless!
Also, check resharper and coderush.

EDIT:
According to the question, Resharper and coderush are not free options.
Definitively, the cheapest one is to press Ctrl + K , Ctrl +D.

Matias
+1: works for ANY code in Visual Studio
roman m
What is the difference with Ctrl+K+D with Ctrl+K+F?
Nassign
Ctrl+K+D formats the whole page.Ctrl+K+F formats only the selection.
Vadim
Coderush does have a free option.
Martin