Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Line Numbers in Eclipse

DZone's Guide to

Line Numbers in Eclipse

· Java Zone ·
Free Resource

Download Microservices for Java Developers: A hands-on introduction to frameworks and containers. Brought to you in partnership with Red Hat.

Either you hate it, or you love it: Line numbers in the Eclipse Editor:

Line Numbers in Eclipse Editor View

Line Numbers in Eclipse Editor View

Personally, I love it!

Not every Eclipse distribution has it enabled by default (CodeWarrior 10.2 or later has it on by default). In case you want to get the extra screen real estate, or to change the setting, here is how to do this:

The setting is under the menu Window > Preferences > General > Editors > Text Editors:

Show line numbers Setting

Show line numbers Setting

:idea: If you don’t know where there is a setting, simply type in a word in the ‘filter’ text box, and Eclipse will show all settings which could be related to it:

Filter Text Box

Filter Text Box

Happy Numbering :-)

Download Building Reactive Microservices in Java: Asynchronous and Event-Based Application Design. Brought to you in partnership with Red Hat

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}