How can I show line numbers in Eclipse?

Sayed Bondok picture Sayed Bondok · Mar 13, 2009 · Viewed 429.4k times · Source

How can I show line numbers by default in Eclipse?

Answer

fbernier picture fbernier · Mar 13, 2009

Window → Preferences → General → Editors → Text Editors → Show line numbers.


Edit: I wrote this long ago but as @ArtOfWarfar and @voidstate mentioned you can now simply:

Right click the gutter and select "Show Line Numbers":