Advertisements

DISPLAY LINE NUMBERS IN THE VISUAL STUDIO EDITOR


Introduction 

In this article you will learn how to set the line number in Visual Studio Editor.We can simply set this option in two or four steps.The main purpose of setting this option is we can easily find out the code line number in both aspx page and aspx.cs page.Other important one is when we facing an error in programming it’s providing the line number and error message details.So we can quickly find out the code line number.

Step 1: Before setting the line code number in Visual Studio the both pages are look like this.

1

Figure 1

2

Figure 2

Step 2: Select Tools section in visual studio editor. Select -> Tools -> Options.

3

Figure 3

Step 3: Open the Text Editor , Text Editor -> All Languages -> General -> Click the check box Line Numbers -> Click Ok.

4

Figure 4

Step 4: After the step 3 just check out the both pages like aspx and aspx.cs.

5

Figure 5

6

Figure 6

Summary

We learned how to set the line number in Visual Studio Editor. I hope this article is useful for all .NET beginners.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: