No line numbers in Eclipse or Android Studio XML editor

前端 未结 9 1474
南方客
南方客 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 12:49

    To make the line numbers always show for Android Studio:

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

    The accepted answer works, but it will only make the line numbers visible on the active editor.

    0 讨论(0)
  • 2021-02-01 12:52

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

    enter image description here

    0 讨论(0)
  • 2021-02-01 12:53

    To make the line numbers show always in your android studio, follow this, go to: File > Settings > Editor > General > Appearance and then check the "Show line numbers" box especially if you are using AS 2.1.1. Picture here below...How to show line numbers in Android Studio 2.1.1

    0 讨论(0)
  • 2021-02-01 12:54

    In eclipse: Windows > Preferences > General > Editors > Text Editors check: "show line numbers" It is not checked by default. It is for both source code and xml files (at least in helios)

    0 讨论(0)
  • 2021-02-01 12:57

    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

    or change it in the settings

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

    0 讨论(0)
  • 2021-02-01 12:57

    On OS X: Android Studio (top left of the screen) > Preferences > Editor > Appearance.

    0 讨论(0)
提交回复
热议问题