Snippet Compiler – Write and test snippets of code outside of VS without saving

[Via VSData Team Blog]

One of the things people like about VS2005 is that you can create projects and not save them until you hit, er, File/Save. Keeps you from getting those WindowsApplication1 thru WindowsApplication5999 directories. Anyway, via Rick Strahl's weblog, here's what looks like a cool tool that lets you quickly test small apps without having to save the code.
From the homepage:

If you're like me, you probably have hundreds of Visual Studio solutions that consist of a few lines of code to test out something outside the scope of whatever you're currently working on. Of course there's nothing wrong with that, but the time it takes to launch a new VS.NET, create the project and so on is just unnecessary. Today one of the voices in my head said that it's easy enough to compile code using the framework, so why not do something about it, so I wrote this little thing. (It then told me to eat lunch, which I dutifully did.) Snippet Compiler leads a simple life. Here are its features:

  • Compiles and runs single or multiple C#, VB.NET and ASP.NET snippets.

  • Optionally builds WinForm EXEs, console EXEs or DLLs.

  • The user can store a library of templates

  • Displays compile errors and warning, including wave lines in editor with error/warning tooltips.

  • IntelliSense for static members and method signatures, as well as constructor signatures.

  • Imports VS.NET projects.

  • Conveniently sits in the notification area waiting to be useful.

  • Exports snippets to HTML/RTF.

 Snippet Compiler Pic

Enjoy - Josh

Comments (11)

  1. Can this be used from VS.NET 2002 or does it require older versions? Is it a .NET Framework 1.1 or 1.0375x release?

    Looks like a great tool with lots of potential uses including compiling code snippets for online articles.

    Good Job!

  2. Kingsley Tagbo on Data Mining and .NET says:
  3. Kingsley Tagbo on Data Mining and .NET says:
  4. jledgard says:

    This does not rely on VS. It should be compatible with both versions of the framework if you have them installed provided the author did not hard code paths.

  5. I have not looked at some of the other tools here yet, but I think this should win the prize! Snippet Compiler is flat out the coolest thing I have seen! I do a lot of presentations and now I can use this instead of notepad and best part is that it will actually run the code. Awesome job.

  6. jledgard says:

    Great feedback. You should send it along to Jeff since he wrote it. I’m sure he would love to hear…

  7. says:


  8. If you are using VS.NET 2003, you may find this CoadTools Quick Test C# Project Template for VS.NET 2003 to be useful. It is just a small "New Project" template for VS.NET 2003 specifically for small code tests.

Skip to main content