How to Show Line Numbers in Eclipse IDE

If you are a developer and using Eclipse, then you will need to show line numbers in Eclipse. This will be really helpful to navigate and debug the code.

There are two ways to display line numbers in Eclipse IDE and these steps work for all versions of Eclipse, be it helios, kepler, neon or any other version.

Method 1:

  1. Go to Windows → Preferences.
  2. Under General → Editors → Text Editors, select the checkbox “Show line numbers”.
    Show line numbers in Eclipse IDE

  3. Press OK to save the changes.

Read also: Add Animated GIF, hyperlink to images in Outlook signature

Method 2:

  1. Open any source file in the Eclipse IDE.
  2. Right-click anywhere on the left bar and click on “Show Line Numbers”.
    Display Line Numbers in Eclipse

This is how you can show line numbers in the Eclipse editor.

Happy learning :).

Please follow and like us:

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top