views:

812

answers:

3

I have tried Resharper Power toy Zen Coding and found it can only generate code in one line, can it generate formatted code.

for example i type in

ul>li*3

it generate:

<ul><li></li><li></li><li></li></ul>

i want it format to:

<ul>
  <li></li>
  <li></li>
  <li></li>
</ul>
A: 

just found the shot key

ctrl+k, ctrl+f

for format selected html in visual studio

cntrl-k, cntrl-d for document might be easier for you.
Keith Nicholas
A: 

There is also another zencoding VS plugin available at http://tech.einaregilsson.com/2009/11/12/zen-coding-visual-studio-addin/ which inserts formatted html by default.

Einar Egilsson
This one is better, I can use it define my own snippets.
+1  A: 

What build are you using? I don't seem to have that formatting problem.

Hadi Hariri
Got the same problem, build 1628.
JJoos
I have the same problem with VS 10.0.30319.1, ReSharper 5.1.1751.8, but I'm not sure which build of the ZenCoding plugin. It's the release that's up on codeplex right now for R# 5.1.1 says that it was put there on Sep 24, 2010.
dustyburwell