Home > Tips, Visual Studio > The Snippy tool for my own snippets

The Snippy tool for my own snippets

 

What to do?

Let us to make a snippet called “propb” which generates next final code.

01

Download the Snippy and Run it.

You can make your own code snippets using the Snippy which provides visual configurations of your own code snippets.

Download the source at http://www.codeplex.com/snippy and build the solution. This is the Snippy application screen.

021

Fill the Base Section.

Fill the Title, Shortcut, Author and Description. Shortcut is important key to use later this snippet.

03

Set the Literals and objects section.

In our “propb” snippet, we would add 3 objects of type,property and pmember. This is the list after adding them.

04

Click the Add button and fill the forms. This is a sample for a object addition.

05

Write the snippet code in to the code area.

Change ‘Language’ to csharp and type the code. You should mark a previous Object like ‘pmember’  with ‘$…$’ string. Also you can mark ending focus section writing ‘$end$ string.

06

Yes!. We’ve finished editing in the Snippy tool.

Write the snippet code in to the code area.

Save to the ‘My Code Snippets’ directory path.

07

Save the snippet with ‘propb’ file name to the My Code Snippets under the Windows my documents.

08

It is easy to check it in your Visual Studio Snippets Manager. Go to the Tools > Code Snippets Manager.

09

Use the snippet we made.

10

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: