在Eclipse或Android Studio的XML编辑器没有行号行号、编辑器、Android、Eclipse

2023-09-05 00:28:59 作者:紫藤花开

当编辑在编辑器的Eclipse XML文件,不显示行号。

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

使用情况:

我创造了许多意见的布局,其中之一缺少的android:layout_width属性。这会导致运行时错误时,二进制XML布局资源膨胀。错误日志告诉我检查就像在我的XML文件361。

I create a layout with many views, one of these lacks android:layout_width attribute. This causes a runtime error when the binary XML layout resource is inflated. The error log tells me to check like 361 in my XML file.

由于线路号,我可以找到有问题的线路,并进行更改,而无需在其他编辑器中打开该文件。

Thanks to the line number being displayed I can find the offending line and make the change without having to open the file in another editor.

推荐答案

试着右击灰色栏并选择显示行号 它为我工作,所以希望它会为吴太

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