Question

I have tried the 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 generates:

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

I want it formatted as:

<ul>
  <li></li>
  <li></li>
  <li></li>
</ul>
Was it helpful?

Solution

There is also another Zen Coding Visual Studio plugin available at http://tech.einaregilsson.com/2009/11/12/zen-coding-visual-studio-addin/ which inserts formatted HTML by default.

OTHER TIPS

I just found the shortcut key combination,

Ctrl+k, Ctrl+f

for formatting selected HTML in Visual Studio.

For anyone interested in VS2010 and zen coding, it looks like the most actively maintained project (as of this writing) is here. Created by Danny_Su. Find it in the gallery by searching for Visual Studio Zen Coding 2010

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top