xxxxxxxxxx
Tools >> Options >> Text Editor >> All languages > General > line Numbers
xxxxxxxxxx
On the menu bar, select Tools > Options > Text Editor, and then select either the language you're using or All Languages to turn on line numbers in all supported programming languages.
Select the Line numbers checkbox to show line numbers, or clear the checkbox to hide line numbers.