Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
290 views
in Technique[技术] by (71.8m points)

user interface - 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?

question from:https://stackoverflow.com/questions/1720420/visual-studio-why-are-line-numbers-off-by-default

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

The only time I'm interested in line numbers is when I've given a specific one (e.g. in a stack trace). At that point I want to go to that particular line (which I can do directly) but I don't need to see the surrounding line numbers.

I value the contents of my screen, and line numbers would just be wasting it for me.

I think the bigger question is to ask yourself why you would want to see line numbers. Why are they important to you? In what situations do you need to see all the line numbers for the current page, rather than just the current line (which is displayed in the status bar)?

EDIT: I agree with Michael's answer that for the specific example of pair programming, they're useful. Personally I don't happen to pair very often (I'm happy to do so, it's just rare) and so line numbers are not useful - and are even distracting - for the rest of the time.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...