In Visual Studio, Line Numbers are not on by default. but it is very handy to enable them because they will help you enhancing your programmability. As most of the time, errors are shown with the information about the line number where that error has occurred. That time, these line numbers can help you finding the line where that error was occurred. I will be using Visual Studio 2010 Ultimate Edition to show you an example.
Instructions:
- Open Visual Studio and then click on Tools menu.
- In Tools menu, select Options.
- In Visual Studio Options dialogue, expand Text Editor section.
- In that section select the language for which you want to enable the line numbers (for e.g I have selected C#).
- In the right section for your selected language check the option saying Line Numbers.
- Click OK to accept the changes.