Skip to content

Comment on Ask HN: Why don't code editors ever have line numbers on by default?

Comments

What do you need line numbers for?

I use the "jump to line" command when I'm looking up the cause of a compiler error message, but in an IDE world I doubt I'd need even that, since it'd presumably just link the errors to the appropriate lines visually.

RalzOP

I think line numbers help in gauging how large a class or method is if the file is longer than a few hundred lines. They also help organize things for me, if I roughly know what line a certain piece of code exists at I can usually find it faster (using jump to line) than without having line numbers.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.