Friday, October 10, 2008

Showing line numbers in Visual Studio.NET

There have so many people like to see line number along with code in the left so as to they can easily found error and it is easer to remember where my code is but also to use the ctrl + g (goto line number) shortcut. By default this feature is disabled but luckely it's quite easy to turn it on.

Just navigate to the menu, choose Tools | Options and expand the Text editor node in the treeview on the left like shown in Figure 1:







Figure 1: The expanded Text Editor part.

In Figure 1 it is showing All languages node or the node of the language that you're interested in and check the Line numbers checkbox. Click the OK button and you have the line numbers appearing in your source view.


No comments: