Line Numbers in Visual C# 2008 Express

I’ve been using Visual C# 2008 Express on my laptop (the full thing is outside of my budget at the moment), but it meets my needs quite well. However, while trying to diagnose a problem with one of my tests in NUnit (which I think is fabulous) I went back to Visual C# Express with line number in hand ready to find the problem. Of course, the line numbers aren’t shown by default in Visual Studio.

Fortunately I had dealt with the problem before (in the full version of Visual Studio) and knew that it was a “per language” setting, which I always thought was kind of odd, but maybe most people don’t like seeing the line numbers for all their files (why?). Anyway, I went looking, but I couldn’t find it. Frustrated I jumped on my favourite search engine and quickly found the solution to my problem. Under the list of option categories there is a little checkbox labelled “Show all settings”.

Checking this box gave me a bundle of extra options, including the ability to display line numbers (Text Editor » C#, then the “Line numbers” checkbox under Display). But I must ask, why is this some sort of advanced hidden option??

So in future if I’m expecting an option to be show I will look for the magic “Show all settings” checkbox!

6 Responses to “Line Numbers in Visual C# 2008 Express”


  1. 1 Greg

    Thanks for the solution. It took me a while to figure out where the “Show all settings” checkbox was. For some reason I never scrutinized that part of the dialog box. The checkbox is located in the lower left, parallel with the OK button.

    Greg

  2. 2 Jason

    Yeah, leave it to M$ to hide one of the most useful features. Most editors have it enabled at default, or at least make it very easy to turn on. I just don’t know what they’re thinking…

  3. 3 Mal

    Thanks! (Dang hidden settings…)

  4. 4 Clinton Pierce

    Same problem, and yours was the first hit on Google. Thanks.

  5. 5 Mark

    God knows why someone would disable this by default because of the typed language. Beats me.

    Thanks for the help!

  6. 6 Tavares

    Some hours with MS Help and don’t find solution.
    One search in google and find your post with the solution.

    Thanks for your post

Leave a Reply