Skip to content

Tip 1.33: How to print line numbers

September 5, 2014

“Visual Studio Tips, 251 ways to improve your Productivity in Visual Studio“, courtesy of ‘Sara Ford’

Sara Ford’s Blog

Sara Aside

Back in the Visual Studio .NET 2003 days, you had to go to File–Page Setup and check Line Numbers (in the lower left corner) to print line numbers, regardless of whether they were visible in the editor. For Visual Studio 2005 and beyond, they moved this option to the Print dialog box.

To print line numbers, go to File–Print, and on the lower left, you’ll see two options:

Here’s a bonus tip, because she cannot bring herself to write a “Did you know … how to hide collapsed regions when printing” tip. It makes her yawn. You can also hide collapsed regions. She has used this when she wanted to print out just her test case function and she didn’t want to print out any of the helper functions because they all lived in the same test case file.

The preceding illustration, which she printed to an .xps file (no, she didn’t scan in a printed page), shows how the hidden collapsed regions will print out.

Happy Programming! =)

Leave a Comment

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: