Display line numbers in Visual C# 2008 Express

To display line numbers in code

  1. On the Tools menu selecti, Options.
  2. In the Text Editor folder, choose the General options in the All Languages subfolder to set this option globally
  3. Under Display, select Line numbers.

If you do not see the All Languages subfolder or the Display section, make sure that the Show all settings checkbox at the bottom of the window is checked.

Reference