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

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

问题描述



使用案例:



在Eclipse编辑器中编辑XML文件时,不会显示行号。 p>我创建了一个具有许多视图的布局,其中一个缺少android:layout_width属性。当二进制XML布局资源膨胀时,会导致运行时错误。错误日志告诉我在我的XML文件中检查像361。



由于显示的行号,我可以找到违规行,进行更改,而无需在另一个编辑器中打开该文件。

解决方案

尝试右键单击灰色条并选择显示行号
它适用于我,所以希望它也会为你也







或在设置中更改



文件>设置>编辑器>外观然后单击显示行号框。


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_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

or change it in the settings

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

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

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