Adding line numbers on Visual Studio

Alumina Brain picture Alumina Brain · Aug 12, 2015 · Viewed 13.9k times · Source

How do I add line numbers in Microsoft Visual Studio?

Answer

iliketocode picture iliketocode · Aug 12, 2015

On the menu bar, choose Tools, Options. Expand the Text Editor node, and then select either the node for the language you are using, or All Languages to turn on line numbers in all languages.

enter image description here

Note-

This is how to do it in VS 2013. Other versions may have the "Line numbers" option listed under Text Editor => General, as shown in the screen shot below-

enter image description here