Click here to Skip to main content
Click here to Skip to main content
Alternative Tip

Display line number in Visual Studio

By , 24 Jan 2011
Rate this:
Please Sign up or sign in to vote.
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
Retired Systems Admin, Programmer, Dogsbody.
Mainly on Systems for Local Government, Health Authorities,
Insurance Industry - (COBOL eeeeeeeugh).
Inventor of Synchronized Shopping.

Comments and Discussions

 
Generalsorry - wrong vote button - comment belongs on original post Pinmemberdmjm-h31-Jan-11 7:23 
GeneralRe: Honestly, 4 years and 2 months and you never write me. Now I... PinmemberHenry Minute31-Jan-11 11:10 
GeneralReason for my vote of 2 The line number option is exactly wh... Pinmemberdmjm-h31-Jan-11 7:20 
GeneralReason for my vote of 5 I hadn't thought of that before. PinprotectorAspDotNetDev24-Jan-11 10:18 
GeneralReason for my vote of 5 Now this IS useful, even if you have... Pinmemberdalek924-Jan-11 6:53 
GeneralEven I am of the same opinion henry. I prefer Ctrl + G inste... PinmemberPravin Patil, Mumbai24-Jan-11 1:19 
GeneralYou meant Ctrl + G right? ;) PinmemberVenkatesh Mookkan23-Jan-11 15:27 
GeneralRe: You are quite right. Thanks! :D PinmemberHenry Minute24-Jan-11 0:11 

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

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

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