Alessandro Del Sole's Blog

/* A programming space about Microsoft® .NET® */
posts - 159, comments - 0, trackbacks - 0

My Links

News

Your host

This is me! This space is about Microsoft® .NET® and Microsoft® Visual Basic development. Enjoy! :-)

These postings are provided 'AS IS' for entertainment purposes only with absolutely no warranty expressed or implied and confer no rights.

Microsoft MVP

My MVP Profile

I'm a VB!

Watch my interview in Seattle

My new book on VB 2015!

Pre-order VB 2015 Unleashed Pre-order my new book "Visual Basic 2015 Unleashed". Click for more info!

My new book on LightSwitch!

Visual Studio LightSwitch Unleashed My book "Visual Studio LightSwitch Unleashed" is available. Click the cover!

Your visits

Follow me on Twitter!

CodePlex download Download my open-source projects from CodePlex!

Article Categories

Archives

Post Categories

.NET Framework

Blogroll

Help Authoring

Microsoft & MSDN

Setup & Deployment

Visual Basic 2005/2008/2010

Export Selection As Code Snippet

This add-in for Visual Studio 2008 allows to export selected code as a reusable Code Snippet (.snippet file format) for Visual Studio 2008. Complete *Visual Basic* source code and a documentation file are provided.

Check out the new version for *Visual Studio 2010 RC*

Note: now available a version for Visual Studio 2010 Release Candidate
here

The add-in adds a menu item to the Code Window context menu. After you select a code snippet in the code editor, just right click the selection. Select the "Export as Code Snippet" command from the context menu:

Dev10Beta2.jpg

Then, customize your snippet's properties in the appearing window. The following is a screen shot of the window where you can customize attributes:

exportascodesnippet.jpg

Then, you can easily add your code snippet using Intellisense:

addsnippet.jpg

This add-in assumes you have a little bit of familiarity with Microsoft XML Schema for Code Snippets, which you can find
here.

Available materials:
1. Full Visual Basic 2008 and 2010 RC source code
2. XPS Document with explanations
3. Video tutorial about add-in's usage (in webcast style)
4. Installer package (which contains binary add-in, source code, documentation and video), only for Visual Studio 2008

Programming techniques you can learn

1. Fundamentals of add-in programming
2. Fundamentals of how manage elements in the Visual Studio IDE
3. Use of LINQ-to-Xml and XML Literals in VB 2008/2010 for creating XML Documents from scratch
4. Techniques for checking permissions to write files and show UI elements according to .NET Code Access Security
5. Data-binding between DataGridView controls and generic collections

Print | posted on sabato 13 marzo 2010 02:00 | Filed Under [ My CodePlex projects ]

Feedback

No comments posted yet.

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 3 and 4 and type the answer here:

Powered by:
Powered By Subtext Powered By ASP.NET