ADT eclipse xml布局文本编辑器 - 经常断开,直到文件关闭并重新打开 [英] ADT eclipse xml layout text editor - often broken until file closed and reopened

查看:280
本文介绍了ADT eclipse xml布局文本编辑器 - 经常断开,直到文件关闭并重新打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

移动和消失代码行; Eclipse的XML编辑器的麻烦


我是Eclipse和ADT的新手,但是在两个不同的机器上设置我的环境,并且都显示相同的怪异(都是Windows 7 64位)。



在图形布局和主图形之间更改标签.xml视图,main.xml视图中的代码行将开始消失或移动。如果没有视频或GIF动画,很难显示,但我会尝试使用这些截图:



请注意,我所做的一切都是突出显示一个文本块,突然间所有的这些文物都浮出水面。 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X-请帮我解决这个问题。



图片:



$ b 200新新新新子:200新新新新旗新新200新200新新旗新新200新200新新旗200新新旗200新新新新旗200新新新200新新旗200新新新200新200新新旗200新新新200新新旗200新新新200新新旗200新新新新旗200新新新200新新旗200新新新200新新旗200新新新200新新旗200新新新200新新旗200新新新200新新旗200新新新200新新新200新新新新200新新新200新新200新新旗200新新新新200新新新新200新新旗200新新新200新新旗200新新新200新新旗200新新新200新新旗200新新新200新新旗200新新新新200新新旗200新新新200新(替代方法)



窗口>首选项> Android>编辑器> Untick使用标准格式设置XML文件(第一选项)

X- 20045454545 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- 20045 X- Eclipse内置约定你不应该得到错误。


Possible Duplicate:
Moving and vanishing lines of code; trouble with Eclipse's XML Editor

I'm new to Eclipse and ADT but have set up my environment on two different machines, and both are displaying the same oddities (both are Windows 7 64 bit).

When changing tabs between the graphical layout and the main.xml views, the lines of code in the main.xml view will start disappearing or moving around. It's hard to display this without a video or animated gif, but I'll attempt with these screenshots:

Note that all I've done is highlight a block of text, and suddenly all these artifacts shwo up. It makes development a bit less than pleasant.

Any thoughts? Please Help me to solve this problem.

images :

解决方案

FOUND AN EASY WAY TO DISABLE THE BUG!! (WORKAROUND)

Window > Preferences > Android > Editors > Untick "Format XML files using the standard..." (1st option)

Then, just do Ctrl + Shift + F to Auto-format your XML to Eclipse Built-In convention. You should not be getting the bug at all.

这篇关于ADT eclipse xml布局文本编辑器 - 经常断开,直到文件关闭并重新打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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