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.
4 Responses to “Showing line numbers in Visual C# 2010 Express”
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.
No problem, and I hear you. I think the lines should just be on by default
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
Ops !!
ShowlineNumbers , here the value at the file CurrentSettings.vssettings ,
there are many values ( ShowlineNumbers )
I was changing them all