Adding a snippet in Visual Studio

Adding a snippet in Visual Studio can save time later..

Open notepad and type:



    
        
Hello World C# Myself Says Hello to the world. hello
System.Windows.Forms.dll System.Windows.Forms

Place your code after :


Save as utf-8!

Copy to: C:\Users\\Documents\Visual Studio \Code Snippets\Visual C#\My Code Snippets\.snippet

See: https://msdn.microsoft.com/en-us/library/ms165394.aspx

My Snippet to set up a viewmodel for my project:



    
        
ViewModel geoffviewmodel Geoff Atkinson Create Basic ViewModel Layout
ViewModelName Name of this View Model MyViewModel

Leave a Reply

Your email address will not be published. Required fields are marked *