Visual Studio add-ins, extensions and tools

November 24, 2011

ZenCoding extension for Visual Studio 2010 review

Filed under: Reviews — Tags: , — Sergey Vlasov @ 6:56 pm

ZenCoding extension for Visual Studio 2010 speeds up HTML coding expanding short Zen commands into full-fledged HTML code. For example, to create a 2*3 table in HTML you type “table>(tr>td*3)*2″ and press expand:

<table>
  <tr>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr>
    <td></td>
    <td></td>
    <td></td>
  </tr>
</table>

You can generate id and class properties with the CSS like syntax:

p#myid.myclass   ->
<p id='myid' class='myclass'></p>

You can even use the counter variable $ to number output elements:

ul>li.item$*2   ->
<ul>
  <li class='item1'></li>
  <li class='item2'></li>
</ul>

Zen Coding is supported for many editors (see the official zen-coding page). The Visual Studio 2010 extension was developed by Yngve B. Nilsen and described in details on his blog.

After the installation you will see the additional ZenCoding submenu in the main Visual Studio menu. You can generate a test paragraph by typing p and clicking ZenCoding – Expand Zen. For convenience it is highly recommended to assign a keyboard shortcut to this command:

Assign a keyboard shortcut to the ExpandZen command

Assign a keyboard shortcut to the ExpandZen command


ZenCoding has its own options to customize the quote style and create custom shortcuts:
Quote style for attributes

Quote style for attributes


Custom shortcuts options

Custom shortcuts options


ZenCoding is a free extension for Visual Studio 2010. You can download it from Visual Studio Gallery.

 

 

Organize Visual Studio tabs with Tabs Studio add-in

November 17, 2011

Elastic Tabstops for Visual Studio 2010 review

Filed under: Reviews — Tags: , — Sergey Vlasov @ 12:15 pm

Elastic Tabstops extension for Visual Studio 2010 automatically aligns columns of text in your source files:

Column blocks

Column blocks


The original idea of elastic tabstops was invented by Nick Gravgaard (see his explanation). He proposes first to use tabs as separators of columns of text like in tab separated table files. And second use special text editors that automatically align columns taking into account maximum text width in each column.

The Visual Studio 2010 extension was developed by Ramunas Geciauskas. After the installation, first of all ensure that in Visual Studio – Tools – Options – Text Editor – C# (or your preferred language) – Tabs – Tab is set to Keep tabs. Now use tabs to separate different columns of text and your code will be automatically aligned:

<tab>this.button1.Location<tab>=<tab>new System.Drawing.Point(113, 85);<tab>// Location
<tab>this.button1.Name<tab>=<tab>"button1";<tab>// Name
<tab>this.button1.Size<tab>=<tab>new System.Drawing.Size(75, 23);<tab>// Size

Automatically aligned code

Automatically aligned code


Elastic Tabstops is a free extension for Visual Studio 2010. You can download it from Visual Studio Gallery.

 

 

Organize Visual Studio tabs with Tabs Studio add-in

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.