Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio – why are line numbers off by default?

Seems totally backward to me that such an excellent IDE would hide line numbers by default. This seems like an obvious oversight, or poor default.

Which means I'm missing something – because in the VS dev team vs Me, I know who has more experience.

So what am I missing? Why would I not need to see line numbers in code?

like image 316
nailitdown Avatar asked Nov 12 '09 07:11

nailitdown


People also ask

Do all code editors put line numbers?

Largely due to the prevalence of interactive text editing in modern operating systems, line numbers are not a feature of most programming languages, even modern Fortran and Basic.

How do I turn off line numbers in VSCode?

Open up your VSCode keybindings. You'll notice that my keybinding is CMD + L. You can choose whatever you want, as long as it's not already taken. Save your file, and now you should be able to toggle line numbers on/off with whatever keybinding you added in your keybindings file.

How does Visual Studio calculate lines of code?

In VS2010 there is a in-built tool that counts all lines of code and other values too: Go to View -> Other Windows -> Code metrics results. A little button in the corner that looks like a calendar, click that, the tooltip should say Calculate code metrics for soulution, and let VS do it's thing.


1 Answers

Line numbers are essential when pair programming. When two people are working together, it is very helpful to say something to the effect of "There is an issue on line 35"

like image 157
Mike Valenty Avatar answered Oct 05 '22 23:10

Mike Valenty