You'll find it in the options dialog:-
Tools > Options > Text Editor > [Language]
(Where Language is C# or Basic depending on which you are using)
Then on the options form you'll se a checkbox called "Line Numbers" in the
section headed "Display", tick this then click Ok to dismiss the dialog.
HTH
Peter