Click here to Skip to main content
Click here to Skip to main content

Display line number in Visual Studio

By , 24 Jan 2011
 
I know that some people like to have line numbers and it is particularly useful if you are sending code to somebody else, like posting it on CP in Q&A when asking for help with a problem, for example. In cases like that, it is much easier to say "the error is on line 123".
 
However, I don't like to have them on all the time so, provided that you haven't changed the default key-mappings simply type Ctl-g, enter the line number and press return. You get taken straight to the appropriate line.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Henry Minute
Retired
United Kingdom United Kingdom
Member
Retired Systems Admin, Programmer, Dogsbody.
Mainly on Systems for Local Government, Health Authorities,
Insurance Industry - (COBOL eeeeeeeugh).
Inventor of Synchronized Shopping.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
Hint: For improved responsiveness ensure Javascript is enabled and choose 'Normal' from the Layout dropdown and hit 'Update'.
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Generalsorry - wrong vote button - comment belongs on original postmemberdmjm-h31 Jan '11 - 7:23 
GeneralRe: Honestly, 4 years and 2 months and you never write me. Now I...memberHenry Minute31 Jan '11 - 11:10 
GeneralReason for my vote of 2 The line number option is exactly wh...memberdmjm-h31 Jan '11 - 7:20 
GeneralReason for my vote of 5 I hadn't thought of that before.protectorAspDotNetDev24 Jan '11 - 10:18 
GeneralReason for my vote of 5 Now this IS useful, even if you have...memberdalek924 Jan '11 - 6:53 
GeneralEven I am of the same opinion henry. I prefer Ctrl + G inste...memberPravin Patil, Mumbai24 Jan '11 - 1:19 
GeneralYou meant Ctrl + G right? ;)memberVenkatesh Mookkan23 Jan '11 - 15:27 
GeneralRe: You are quite right. Thanks! :DmemberHenry Minute24 Jan '11 - 0:11 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web01 | 2.6.130523.1 | Last Updated 24 Jan 2011
Article Copyright 2011 by Henry Minute
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid