couple of C# snippets for Console.Error.WriteLine

Nothing TF-related here – while writing up some simple example apps, I find myself not liking that while there’s the “cw” snippet for Console.WriteLine, there’s nothing for Console.Error.WriteLine, so I made a couple of very simple snippets – cew for Console.Error.WriteLine and cewe for Console.Error.WriteLine followed by Environment.Exit(1).

Just extract the 2 .snippet files from the attached .zip into your My Documents\Visual Studio 2005\Code Snippets\Visual C#\My Code Snippets dir (even while VS is running!  It picks up the snippets immediately!) if you think you might find it useful.

On a related note, if you haven’t gotten them already, make sure to fetch the new batch of C# code snippets – they port over all the ones VB had since Whidbey shipped, so those of us that were suffering from snippet envy can move on with our lives.

Comments (0)

Skip to main content