.Net Programming - Financial independence

How to Add Line Numbers in Visual Studio

I wanted to show you how to add line numbers to your Visual Studio interface but couldn’t find a proper tutorial to do so, that’s why I decided to create the Quick Tips series!

Adding line numbers is easy and really useful to pointing out things that don’t work to coworkers. It’s also easier to know where you are in a document that has a few hundred lines.

Without Line numbers

To show the line numbers, first go into Tools menu -> Options.

Tools - Options

Then expand TextEditor -> I chose all languages but if you want to be more selective you can click on one or many to ajust the option. Finally, check the Line numbers check box.

Options Line numbers

That’s it! The line numbers should appear on the selected or all the programming languages (depending on your selection).

Here is the final result.

Line numbers

Next article How to Work with Functions and Subs in Visual Basic
Previous article How to debug with Visual Studio in Visual Basic/C#

Related posts


No Comments Yet!

You can be first to comment this post!

Leave a Comment

Your data will be safe! Your e-mail address will not be published. Also other data will not be shared with third person. Required fields marked as *