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.
Step 2: Select Tools section in visual studio editor. Select -> Tools -> Options.
Step 3: Open the Text Editor , Text Editor -> All Languages -> General -> Click the check box Line Numbers -> Click Ok.
Step 4: After the step 3 just check out the both pages like aspx and aspx.cs.
We learned how to set the line number in Visual Studio Editor. I hope this article is useful for all .NET beginners.