Discussion Locked

line numbers in visual c++

0 helpful
8 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi

I am doing a self-paced tutorial in C++ using microsoft Visual C++ V5.0.

How do I get the line numbers to appear automatically when I am typing in my code in say, a new C++ source file?

Thanks

Sue

8 replies

by md_hashim

Suggest you use an editor like textpad to view code. You'll need to configure Studio for that - check help to do that....

by wtcr

Hi bradz26
I am using visual c 6. There's nothing on tools/options about line numbers. The book I'm using "Sams teach yourself visual C++ in 21 days - J. Liberty - 4th ed." is good but it is a little technical. Does not go into the visual C++ environment at all.

Any other pointers?

Thanks
Sue

by darryl severn

Don't know why exactly you want the line numbers, but in VC++ the line and column number of where the cursor is located is shown at the bottom right of the window.

You can't just look at the code and go straight to a particular line, but it at least tells you where you are and gives an idea of where to go. If you are looking to go to an error line after compilation etc. try clicking on the error message in the messages window to take you directly to the offending line.

This discussion is closed to new replies.