Custom Snippets

The Premium edition also enables your favorite Visual Studio code snippets, plus a dozen unique high-productivity LINQ snippets - as well as any custom snippets that you define:
Hi I´m new as in NEWbie.. Can anybody guide me to a simple step-by-step HowTo on the above statement. For a start I´d love a snippet shortcut "co" that inserts "Console.WriteLine("");" Thanks in advance and happy linqPadding.


  • LINQPad uses the same format for code snippets as Visual Studio. So any snippets that you define for Visual Studio will also work in LINQPad. Here's an example that does what you describe:
    <?xml version="1.0" encoding="utf-8" ?>

    co (Console.WriteLine)


    Console.WriteLine ($end$);

    Change Coooode to Code ('Code' is a reserved tag in the forum software).

    Name this file co.snippet and put it in either in your Visual Studio snippets folder or in LINQPad's code snippets folder (go to Edit | Preferences to find out or change where this is).

    P.S. LINQPad already has a snippet called 'cw' for Console.WriteLine, just as in Visual Studio.
  • edited May 2013
    Works! Big thanks & most appreciated.
Sign In or Register to comment.