No line numbers in Eclipse or Android Studio XML editor

前端 未结 9 1472
南方客
南方客 2021-02-01 12:35

When editing XML files in the editor for Eclipse, line numbers are not displayed.

Use case:

I create a layout with many views, one of these lacks android:layout_

9条回答
  •  后悔当初
    2021-02-01 13:05

    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+

    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

提交回复
热议问题