共用方式為


Turn on Line Numbers

Menu:  Tools -> Options -> Text Editor -> All Languages -> General -> Display
Versions:  2008,2010
Published:  3/7/2010
Code:  vstipEdit0025

 

Line numbers are not on by default.  To turn on line numbers just go to Tools -> Options -> Text Editor -> All Languages -> General -> Display and check Line numbers:

image

Comments

  • Anonymous
    March 07, 2010
    The comment has been removed

  • Anonymous
    March 07, 2010
    Hey Now Zain, This is a good one & I've enjoyed your series keep going. Thx 4 the info, Catto

  • Anonymous
    November 03, 2010
    The comment has been removed

  • Anonymous
    November 03, 2010
    @Levi  that's the path in my post.  So...

  • Anonymous
    November 03, 2010
    The comment has been removed

  • Anonymous
    November 03, 2010
    @Gabriel -- great point!  thanks for mentioning the macros.  to assign shorcut keys to macros check out blogs.msdn.com/.../create-a-shortcut-key-for-a-macro-vstiptool0066.aspx

  • Anonymous
    November 04, 2010
    The comment has been removed

  • Anonymous
    November 04, 2010
    @gabriel  Thanks man! :)  The funny part was I forgot that was the macro I had used when I did that tip.  I think I've been doing this too long :P

  • Anonymous
    November 04, 2010
    The comment has been removed

  • Anonymous
    October 04, 2011
    Levi is right, the path in the post is incorrect, you have missed out ALL LANGUAGES from it

  • Anonymous
    October 04, 2011
    fixed :)

  • Anonymous
    January 07, 2012
    very useful to how to number editer in visual studio thanks alltem

  • Anonymous
    March 02, 2012
    The comment has been removed

  • Anonymous
    March 03, 2012
    The comment has been removed

  • Anonymous
    October 23, 2012
    in VS 2010 selecect "Show all settings" Optin button then only the TextEditor shows the languages other wise it shows General,File Extension only.

  • Anonymous
    October 29, 2012
    Many thanks. this helps so much in this world of insanity!

  • Anonymous
    November 22, 2012
    When I attempt to turn this setting on and subsequently click OK on the options window, Visual Studio crashes. Brilliant..

  • Anonymous
    June 19, 2013
    Thanks a lot.. useful info in quick second

  • Anonymous
    January 30, 2014
    i got the help I need nice help tool

  • Anonymous
    January 30, 2015
    tq..for providing this information. keep updating all...

  • Anonymous
    April 08, 2015
    Thankyou this is so helpful for me.. nice tip