Print with Line Numbers

Tips Search

Print with Line Numbers

  • Comments 25

Keyboard:  CTRL + P
Menu:  File -> Print
Command:  File.Print
Versions:  2008,2010
Published:  3/9/2010
Code:  vstipEnv0006

 

Want to print your line numbers with your code?  Don't worry!  You can do it by just checking the "Include line numbers" option in the Print Dialog:

image

  • My preference: Info at top and as follows:

    Versions Supported:  2005, 2008, 2010

                                 Default       C#2005      C++6

    Keyboard Shortcut:  CTRL+P      Ctrl+P        Ctrl+P

    Menu Command: File -> Print.

    Command: File.Print

    Tip Code:  vstipEnv0006

  • cool.  thanks for the feedback Stefan :)

    keep your comments coming folks this is your chance to decide how these things should look and I will be going back to retro fit all the tips with the new format so I want to make sure it adds value to everyone.

    Z

  • Question: We printed some stuff out today for a code review, but the only thing colorized were the line numbers (VS2010 RC). The code was nicely coloured on-screen, both F# and SQL source. Is this a known limitation or did we do something wrong when printing?

  • I like the verswion supported info (although going forward I want to adopt VS2010 as soon as I can get client s to accept it) and the bottom is fine :)

    Steve

  • Drat I still can't tpye! :(

    Steve

  • #1 - Yes

    #2 - Top

    Many thanks for very useful tips!

  • 1. Yes, the summary information is very helpful.

    2. At the top so I can ignore the post if it's not applicable to me.

    Thanks :)

  • I think it you've got it nailed as it. I wouldn't change anything...thanks for doing this Zain.

  • Yes, keep them. I do like Stefan's suggestion.

  • My preference is to keep it at the top as well.

  • I was going to suggest putting it at the bottom, but it looks like I'm outvoted :)

  • You all rock!  The morning is just getting started and already I have tons of great feedback.  Thanks for being an active part of the Tip goodness :)

    Keep the comments coming!

    Z

  • Hi Thanks for your resource. My answer is

    #1 - Yes

    #2 - Top

    Thanks,

  • Yes, Top.

    Thanks

    And thanks for the helpful blog.

  • Ditto.  Yes, and at the top is great.

    Thanks!

Page 1 of 2 (25 items) 12
Leave a Comment
  • Please add 8 and 1 and type the answer here:
  • Post