In this brief video tutorial I'll show you how to display line numbers in Visual Studio 2010.

Tools > Options > Text Editor > All Languages and check the Line numbers checkbox.