DotNet Mirror
  DNM facebook   DNM Google+   DNM Twitter   

Snippetizer : Visual Studio tool to create and edit snippets

By Ashok Nalam on 16 Jan 2014 | Category: Visual Studio | Tagged: visual studio 2013 .NET 
  Discuss Add Comment   |  
Add rating Rate this resource   

Introduction:

Code Snippets are very important in day to day development. We might need a piece of code regularly so instead of writing every time, from now we can save and reuse code snippet using Snippetizer extension tool which is available from visual studio 2013 version.

Snippetizer:

Visual Studio extension which allows the user to create and edit snippets with minimal knowledge of the underlying snippet technology and syntax.

Download Snippetizer and run Snippetizer.vsix (OR) install using below method (Tools > Extensions and Updates > Online > Search "snippetizer" )

install-Snippetizer-visual-studio-extensions-updates

Once Snippetizer extension is installed, restart the visual studio and your ready to use features of Snippetizer.

Create Snippet:
Write your piece of code > select your code which you want to create as snippet > Right Click > from context menu select  "Create Snippet" > shows below Peek definition(Snippet Preview) window.
Snippetizer-create-snippet

Save Snippet:
Once you are done with setting snippet definition properties > click on Save from snippet preview bar > Opens Save as window with path locates "C:\Users\User_Name\Documents\Visual Studio 2013\Code Snippets\Visual C#\My Code Snippets" > Provide Name for Snippet.
Snippetizer-create-snippet-saveas

Note: code snippet file extension is ".snippet".

Use Snippet:
Right Click > Insert Snippet > select snippet from My Code Snippets.
Snippetizer-insert-snippet-from-my-code-snippets

Edit Snippet:
Right Click > Edit Snippet > Opens Snippet Defination Peek window(snippet preview) like how it was in Create Snippet > Do your changes > Save.

Delete Snippet:
Open saved snippet location > "C:\Users\User_Name\Documents\Visual Studio 2013\Code Snippets\Visual C#\My Code Snippets" > Delete file.


  Discuss Add Comment    
Add rating Rate this resource   
About the Contributor
Member Since : 10 Dec 2012
Member Points (Level) : 9526  (Professional)
Location : INDIA
Home Page : http://dotnetmirror.com
About : I am admin of this site.
Rate this resource
 
Add your Comment
Name Email WebSite
Captcha Refresh


Comments (0)
No comments found, click here to add comment.
 
cheap jordans|wholesale air max|wholesale jordans|wholesale jewelry|wholesale jerseys