Code snippets are pre-created pieces of code, and Visual Studio supports two kinds of them. Expanding code snippets and surrounding code snippets. You can get started with code snippets right away, since Visual Studio ships with lots of them.
So, how do they work? Well, the expanding code snippets are the easiest to use; you select a snippet by typing in a couple of letters in the editor, and press TAB once or twice to get the code. Continue reading “What’s cool about Code Snippets?”
In a previous article, I described how to use LINQ when parsing a textfile.
Following that train of thoughts further, I found a more elegant way of splitting the lines from the file into columns. Creating extension methods on top of IEnumerable<string> seems like a good idea! Something that could be used like this for a comma-separated file:
from columns in reader.AsEnumerable().AsDelimited(delimiter)
Continue reading “More parsing textfiles with LINQ”
In my previous article about keyboards shortcuts I promised a follow-up.
Well, here it is:
Many of the keyboard shortcuts in Visual Studio are chords. This means that the shortcut is actually a sequence of keypresses. Continue reading “Your second handfull of VS2008 Shortcuts”
Reading and parsing files is really no difficult task with the .NET framework. The System.IO namespace has several good classes to aid that task. Continue reading “Parsing textfiles with LINQ (or LINQ-to-TextReader)”
When teaching programming, I tend to do a lot of live coding. Coding in front of a live audience is special, and I take special care to try to do it right the first time, and also do it as quickly as possible at the same time. Continue reading “Your first handfull of VS2008 keyboard shortcuts”
“Arjan calling world, Arjan calling world!
World, can you read me?”
Welcome to my blog!
A big thanks to Jarle for helping me set this up. Now it’s up to me to actually fill this space with something interesting.