Showing line numbers in Visual C# 2010 Express

Posted on Thursday, July 15th, 2010 at 8:44 pm

Thought I would share how to show line numbers for the code editor in Microsoft Visual C# Express because it is less than intuitive.  My personal opinion is that the numbers should show by default.  It makes a ton of sense to display error locations by line number, but not actually show the line numbers in the code editor.

Anyways, in the top navigation open tools > options dialog.  In the dialog make sure you first check the ‘Show all settings’ checkbox in the lower left corner.  Now expand the ‘Text Editor’ menu item.  Click ‘All Languages’.  Lastly check the ‘Line numbers’ checkbox in the options.  It should really not be this complicated.

Tags
CategoryVisual C#
4 Responses to “Showing line numbers in Visual C# 2010 Express”
  1. Darryl says:

    I’ve been using visual express products for years and I didn’t even know you could display line numbers until i read it in a C# book. Even that didn’t tell me how to turn it on. The checklist “Show all settings” should be on as default. Thank you for sharing this info.

  2. Matthew Cook says:

    No problem, and I hear you. I think the lines should just be on by default :)

  3. Stark says:

    Thank you for this info ,

    I was doing it the long way , by changing the following file manually

    C:\Users\username\Documents\Visual Studio 2010\Settings\C# Express\CurrentSettings.vssettings

    I changed this value
    true

    thank you , for saving my time

  4. Stark says:

    Ops !!

    ShowlineNumbers , here the value at the file CurrentSettings.vssettings ,

    there are many values ( ShowlineNumbers )

    I was changing them all

Leave a Reply

*
(Won't be published) *