views:

63

answers:

3

what plugins do i need to install on eclipse so that .java files will show line number? how about show line number on .xml/.html as well?

A: 

for .java,.xml,.html it by default shows no need for any special plugin

look at the bottom alt text

In order to have a look like alt text

you can make it enabled from preferences>general>editors>texteditors> and make show line no checked

org.life.java
This is *really* not a user-friendly way of getting the line number!
romaintaz
why down vote for this? I have already updated the answer
org.life.java
+7  A: 

Window Menu -> Preferences -> General -> Editors -> Text Editors -> check Show line numbers

Kaleb Brasee
+5  A: 

There is also a simpler way: just right click on gutter (left border of your editor window in which your code resides) and enable them.. there is a specific option there.

alt text

Jack
The option is called "Show line numbers".
bancer