Quantcast
Channel: How To Do Everything | How To Tutorials » Visual Studio
Viewing all articles
Browse latest Browse all 10

How To Show Line Numbers In Visual Studio

$
0
0

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: 

  1. Open Visual Studio and then click on Tools menu.
    Tools Menu In Visual Studio
  2. In Tools menu, select Options.
    Options in Visual Studio
  3. In Visual Studio Options dialogue, expand Text Editor section.
    Text Editor Options In Visual Studio
  4. In that section select the language for which you want to enable the line numbers (for e.g I have selected C#).
  5. In the right section for your selected language check the option saying Line Numbers.
    Show Line Numbers In Visual Studio
  6. Click OK to accept the changes.

Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images