Display line numbers in the Visual Studio code editor

Sometimes it's handy to be able to see line numbers in your code so you can refer to particular lines by number. To turn on line numbering:

  1. Open the Tools menu and select Options.
  2. Expand the Options tree to go to Text Editor > All Languages > General.
  3. In the Display section on the right, check the “Line numbers” box and then click OK.

 

What did you think of this article?




Trackbacks
  • No trackbacks exist for this post.
Comments
  • No comments exist for this post.
Leave a comment

Submitted comments are subject to moderation before being displayed.

 Name

 Email (will not be published)

 Website

Your comment is 0 characters limited to 3000 characters.