visual studio - Shortcut to surround an html tag by table/row/cell with their closing tags? -


  & lt; Table & gt; Find a shortcut in Visual Studio to surround the selected tag; & Lt; Tr & gt; & Lt; Td> My selected element & lt; / Td> & Lt; / Tr & gt; & Lt; / Table & gt;  

I am using Visual Studio 2013.

Anything in plain vanilla vs? Is web essential? Resharper? CodeRush?

Codec can certainly solve this problem for you.

  • Reuben is quite right we have "tunnel with tag" refactoring which can be applied gradually with 'TD', 'TR' and 'table' .

  • Alternatively you

Structure Only

& lt; TAB & gt; & lt; tr & gt; & lt; td> «Carat» & lt; / td & gt; & lt; / tr & gt;

This will create the table structure you create and prepare your careet to enter the data of your choice. Structure with Paste

& lt; Table & gt; & lt; tr & gt; & lt; td & gt; «Paste» & lt; / td & Gt; & lt; / tr & gt;

Existing template

The built-in .t template will create a much more complex table structure under your guidance, and a specific requirement Plugins can be written to solve.

> Note: Using the target element cutting to these techniques, if your target element is sufficiently complex, then the selection on the clipboard and Cutting can seem like too much work.

However ... Another CodeRush feature ( Smart Cut \ Copy ) will make it very easy. Just the position of the carat on the left side of the goal and the cut codeRush will determine that nothing is chosen and dynamically chooses the logical element before continuing with the cutoff operation.

Your task is done at this point

  • Cut
  • Open the template
  • (Alternatively) Paste.

All these steps are only capable of using the keyboard.

If everything fails ... :)

If it does not match your requirement, please feel free to comment below, Or contact me directly (roryb@devexpress.com) and we can discuss your requirements in more detail.


Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -