How to display line numbers in Eclipse
By default, Eclipse’s editor will not display line numbers, it’s no good for debugging. Here’s a tip to show you how to turn on the “display line numbers” feature in Eclipse.
In Eclipse IDE, select “Windows” > “Preference” > “General” > “Editors” > “Text Editors” , check on the “Show line numbers” option.

See result.

Tags : eclipse eclipse tips

Thank you!! :)
Perfect! Thanks.
This website is Excellent. Thanks a lot…!
Is there any other websites for C++ similar to this?
In Mac OS , you have to go Eclipse > Preferences > General > Editors > Text Editors or use short command “CMD+,” and than follow General > Editors > Text Editors
you are awesome :)
Thanks for the lot of helpful postings
Thanks for the tip on line numbers!
Thanks for the tip,you always have the answer!!
Another way to do this is:
In a File, Right click on Left Gray Bar and choose Show Line Numbers.
in this file
[workspace].metadata.plugins\org.eclipse.core.runtime.settings\org.eclipse.ui.editors.prefs
make sure the parameter
lineNumberColor=0,0,0
is NOT 255,255, 255, which is white