views:

325

answers:

1

Does anyone know of a way to add css and html code snippets to Visual Studio 2008?

I love my C# snippets, and HTML/CSS snippets would save a ton of time.

+4  A: 

You can simply mark a piece of HTML/CSS code and drag it into the toolbox. Then rename the snippet in the toolbox and give it a name so you can easily remember what it is.

Then just drag&drop it from the toolbox onto another page to insert the snippet.

(Maybe first create a separate group in the toolbox for your snippets).

M4N
Nice tip - never knew you could do that.
Rob Allen
Awesome- this works great!
Evan