Can R# reformat the HTML behind ASPX pages?

Hello

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
indented.

Cheers

Gabriel Lozano-Moran


3 comments
Comment actions Permalink

Gabriel,

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
http://www.jetbrains.com
"Develop with pleasure!"


0
Comment actions Permalink

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

0
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 :

http://intellij.net/forums/message.jspa?messageID=5194819#5194819
http://intellij.net/forums/message.jspa?messageID=5212112#5212112

Thanks for R#!

0

Please sign in to leave a comment.