By default when you install and launch Eclipse IDE and you create or open a file in it, you should be able to see the line numbers at the right side of each line in the file - at the gutter area, if for any reason you are unable to see the line number, you can try the below steps to enable them,
If you are using Eclipse on Windows Operating System: Go to Windows β Preference β General β Editors βText Editors, now check the checkbox against "Show line numbers"
If you are on macOS then there is a slight variation,
- Open Eclipse,
- Go to Eclipse β Preference..,
- Go to General β Editors,
- Go to Text Editors,
- Check - "Show line numbers"
- Click Apply & Close

Show line Numbers in Eclipse
As you can see in the below image, line numbers are visible in eclipse,

Line Numbers as displayed
Have Questions? Post them here!
More Posts related to Eclipse,
- How to display hidden files in Eclipse (dot prefixed files)
- Convert existing code project into a git project using Eclipse
- How to enable line numbers in Eclipse IDE
- [Eclipse] Syntax error, annotations are only available if source level is 1.5 or greater
- Enable Spellcheck in eclipse workspace
- How to create a Git Project in Eclipse (Step-by-step)
- [Solution] Spring Tool Suite (STS) support for JSP (JAVA EE)
- How to Remove All Terminated Console tabs at once in Eclipse
- Eclipse Java: Multiple markers at this line error
- Compare Current and Previous Versions of Same File (Local History) in Eclipse
- Eclipse : Workspace was written with an older version of the product and will be updated
- How to Save Eclipse console logs in external log file
- Fix: Eclipse Cant Connect to any repository not Authorized Error GitHub
- How to remove unwanted Java imports in IntelliJ (alternative of eclipse Ctrl + Shift + O)
- How to Configure GitHub with Eclipse IDE in 2023
- How to use Content Assist in Eclipse IDE
- Enable Eclipse dark mode
- Fix: Eclipse Connection time out: github.com
- Java was started but returned exit code=13 [Eclipse]
- Java Decompiler Eclipse Plugin
- Add imports in eclipse shortcut key combinations
- Syntax error, parameterized types are only available if source level is 1.5 or greater [Java]
- [Eclipse] Enable or Disable print margin line
- Eclipse Error The JVM Shared Library JavaVirtualMachines does not contain the JNI_CreateJavaVM symbol
- How to reset Eclipse IDE Code Font
More Posts:
- Microsoft 365 Excel - PRO TIP Discover insights quickly with Power BI, which is already included in your Microsoft services, See it in action - Microsoft
- Read a file line by line in Python Program - Python
- SharePoint error - An exception occurred when trying to issue security token: This implementation is not part of the Windows Platform FIPS validated cryptographic algorithms.. - SharePoint
- Difference between using Scanner Class and String args for user input in Java - Java
- How to install Python 3.11 on Mac - Python
- #HappyBirthdayJimin hashtag trending on BTS Jimin 25th birthday [BTS ARMY] - BTS
- Update SharePoint Online List Item using REST API, HTML, Spfx, Postman - SharePoint
- Top 3 Awesome Text Editors developers prefer at workplace - Sublime