在Eclipse或Android Studio的XML编辑器没有行号 [英] No line numbers in Eclipse or Android Studio XML editor

查看:333
本文介绍了在Eclipse或Android Studio的XML编辑器没有行号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当编辑在编辑器的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

这篇关于在Eclipse或Android Studio的XML编辑器没有行号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆