How to show line numbers in Visual Studio (cs and xaml)

Sometimes we get an error or exception in Visual Studio which points us to some specific line where it has been occured. To make our work more effective, we could use following steps :

In VS Tools->Options->Text Editor

In order to see lines in cs files we choose C#


In order to see lines in xaml files we choose XAML

In order to go to the specific line, use Ctl+G:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.