Is there a way to display line numbers in the VB6 / Visual Studio 6.0 IDE?

Ben McCormack picture Ben McCormack · Mar 1, 2010 · Viewed 39.5k times · Source

In the VB6 / Visual Studio 6.0 IDE, is there a way to display line numbers in the code editor like there is in recent versions of Visual Studio .NET?

For example, I would like to ask someone a question about their code and be able to say "In lines 10 through 13 of your MyClass.bas file, I noticed this happened."

Answer

Mike Spross picture Mike Spross · Mar 1, 2010

Not that I know of. However, if you look at the toolbar when you have a code editor window open, there is a section that tells you the current line and column number the cursor is on:

enter image description here

Another possibility is to write an add-in for the IDE that can quickly highlight a range of lines. It's been awhile, but I'm pretty sure that the IDE's extensibility API lets you programmatically highlight sections of code in a code editor window.