You can go to Tools > Options > Text Editor > All Languages and then check "Line numbers" it will then show you line numbers.
If checkbox is "indeterminate" (showing dash instead of checked) state then click twice to mark it as checked.