Machine Setup: How to enable Line Numbers in Visual Studio and SQL Server Management Studio

I like to have line numbers visible when working in both Visual Studio and SQL Server Management Studio.  By default, line numbers are turned off in both environments.  One of the first things I do when setting up a new development machine is to open Visual Studio and SQL Server Management Studio, enable line numbers, and then close both of them so that the setting is saved for the future.

In Microsoft Visual Studio, to enable line numbers open the Options dialog by going to Tools > Options…
Then expand the Text Editor node and then the All Languages node.  Now you will see a Line Number checkbox under the Display section on the right-hand side.   Check this box to display line numbers.

image

It is a nearly identical procedure to enable line numbers in Microsoft SQL Server Management Studio:
Tools > Options… > Text Editor > All Languages > Line Numbers checkbox

image



Published 23 October 2009 09:16 PM by Jeff Widmer

Comments

# Servefault.com said on 23 October, 2009 11:19 PM

Thank you for submitting this cool story - Trackback from Servefault.com

# Anonymous said on 02 March, 2010 10:18 AM

Thanks a lot!!!

# john said on 30 March, 2010 09:40 AM

thanks dude, i was having problems with this

# Jane said on 07 January, 2012 12:11 PM

Thanks it works.But could u plz show how to enable line numbers for a web form and also for html

Leave a Comment

(required) 
(required) 
(optional)
(required) 

Search

Go

This Blog

News

Syndication