Background Knowledge
This applies to Microsoft Visual Studio/Express 2010 and as far as I know 2008 as well.
Solution
- Go to the menu “Tools” -> “Options”.
- In the Options dialog go to “Text Editor” -> “All Languages” or pick a specific language.
- On the right hand side under “Display” place a checkmark on “Line Numbers”.
- Click on the “OK” button.