No line numbers in Eclipse or Android Studio XML editor

try right clicking the grey bar and selecting show line numbers it works for me so hopefully it will for u too

enter image description here

enter image description here

or change it in the settings

File > Settings > Editor > Appearance then click the "Show line numbers" box.


If you're using Android Studio, you can show the line numbers by going to File > Settings > Editor > General > Appearance, then check the "Show line numbers" box.

UPDATE: Android Studio v1.5+ enter image description here

1) Click inside the editor, Command + Shift + A, and type "show line numbers"

2) Select the second option in Preferences and it will take you to the screen that used to exist in General > Appearance

3) Check the "Show Line Numbers" box