Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I see line numbers in the VS2010 editor?

I spent time searching how to do this but came up with nothing. Is there a simple way I can make the editor show line numbers?

like image 880
Crissy Avatar asked May 06 '11 00:05

Crissy


3 Answers

Tools, Options, Text Editor, All Languages, Show Line Numbers

You can also show them only for a specific language.

like image 93
SLaks Avatar answered Nov 12 '22 04:11

SLaks


In the Tools menu, select Options. Under Text Editor, All Languages, General, you'll find "Display line numbers".

like image 28
Hand-E-Food Avatar answered Nov 12 '22 04:11

Hand-E-Food


http://msdn.microsoft.com/en-us/library/ms165340.aspx

On the menu bar, choose Tools, Options.

In the categories list on the left side of the Options window, expand the Text Editor node.

Expand the All Languages subfolder, and then choose General to set this option globally.

like image 1
user620755 Avatar answered Nov 12 '22 04:11

user620755