How to: Display Line Numbers in the Editor
You can toggle line numbering on and off in your code. For more information on finding particular lines of code, see.
The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see.
Line numbers are not added to your code; they are for reference only. For line numbers to print, you must select Include line numbers in the Print dialog box. For more information, see.
To display line numbers in code
On the Tools menu, select Options.
In the Text Editor folder, choose the General options in the All Languages subfolder to set this option globally.
Choose the General options in the subfolder for the language in which you are programming.
Under Display, select Line numbers.