Thursday, December 11, 2014

Microsoft Visual Studio V2012: Display Line Numbers in the Text Editor

  No comments    
categories: 
Microsoft Visual Studio V2012: Display Line Numbers in the Text Editor

By default, line numbers are not visible in Microsoft Visual Studio's Text Editor. This is a disadvantage which may make it difficult for developers to navigate, track, and jump to a specific line in a long script. This tutorial will help you enable this feature easily.

Before I use a new script editor, I always make sure it is set to display line numbers. Although most script
editor have this ability, many of them do not enable it by default.
Here are the required steps in Microsoft Visual Studio v2012.

1-> Launch Microsoft Visual Studio v2012.
2-> From the toolbar, choose Tools--> Options



3-> When the Options windows pops up on the screen, it will be display in minimal mode, with most of the important setting
hidden by default.
4-> From the left side hierarchy, navigate to the Text Editor--> The current language that you are using.
In this example, I am using Visual Basic. If you want to enable this option for all language, choose All Languages.
5-> On the right side of the windows, find the Display section, and check the Line numbers option.
6-> Click the OK button to save the setting


7-> From now on, the Text Editor will display the line number at the beginning of each line.

Before:


After:



0 comments:

Post a Comment