Eclipse – Display line number in the source code.

Line number in the source code is not enabled by default in Eclipse.

Source code view without line numbers.


How to enable line number is the scource code?

Go to Windows => Preference => General => Editors => Text Editors and enable (check) Show line numbers check box.

Source code with line numbers.


Leave a comment

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