Can R# reformat the HTML behind ASPX pages?


I haven't done ASP.NET for years and this week I started on a project where
ASP.NET development is needed. I have noticed that I can run "code cleanup"
on the html code of a ASPX page with R# and I wanted to know if it is
possible with ReSharper to reformats the layout as well referring to the
indents of the tags and so on?

So when I have something like this on a single line:

That R# reformats it by placing the elements on seperate lines and correctly


Gabriel Lozano-Moran

Comment actions Permalink


No, currently ReSharper cleans only C#/ VB code within a web page.
Full-fledged support of web development is being considered as one of the
goals for the next major release.

Sergey V. Coox
JetBrains, Inc
"Develop with pleasure!"

Comment actions Permalink

You can usually achieve this by pressing ctrl-k-d (Edit->Advanced-Format Document) in the VS HTML editor

Comment actions Permalink

Glad to hear the next version will possibly be focused on web development. I have made some suggestions along this line in the past :

Thanks for R#!


Please sign in to leave a comment.