Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

Did you know... How to print line numbers? - #027

Back in the Visual Studio 2003 days, you had to go to File – Page Setup, and check “Line numbers” (in the lower-left hand corner) in order to print line numbers, regardless whether they were visible in the editor.  For Visual Studio 2005, we moved this option to the Print dialog. 

To print line numbers, go to File - Print, and on the lower left, you'll see two options.

Hide collapsed regions and include line numbers options

As a bonus tip, (since a "did you know how to hide collapsed regions when printing" makes me yawn), you can also hide collapsed regions.  I've used this when I wanted to print out just my test case function, but didn't want to print out any of the helper functions, since they all lived in the same test case file. 

printing out hidden collapsed regions shows an elipse

The picture above (printed to a xps file) shows how the "hidden collapsed regions" will print out as ellipses. 

Technorati tags: ,
Posted: Friday, August 31, 2007 3:00 AM by saraford

Comments

Jason Haley said:

# August 31, 2007 10:25 AM

Visual Studio 2008 ワンポイント said:

Visual Studio 2003 のころは、エディタに行番号が表示されているかどうかにかかわらず、[ファイル] メニューの [ページ設定] をクリックし、左下隅の [行番号] チェック ボックスをオンにすれば行番号が印刷されました。Visual

# July 13, 2008 11:41 PM

Секреты Visual Studio said:

В прошлом, когда вы работали на Visual Studio 2003, вам нужно было в диалоге File – Page Setup

# August 25, 2008 2:13 AM
New Comments to this post are disabled
Page view tracker