Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

eclipse android common xml editor stops rendering text correctly (randomly)

So I have (and have had) this problem when editing Android XML in eclipse. I've tried different versions of eclipse and different Android SDK's and entire re-downloads and whatnot but am still presented with this error. When editing an XML in eclipse, in a somewhat unpredictable manner, the text will randomly visibly misalign itself. The text itself is still in the same place, but it's rendered to be in different places. The problem doesn't go away unless I restart eclipse altogether.

The three pictures below are all of the exact same file without ANY modifications.

This picture is how it looks when I select All (ctrl+A)

How it looks when I select all (ctrl+A)

This picture is how it looks when I deselect

How it looks when I unselect text

And this last one is how it looks when I restart eclipse. Note that this is the proper look and it should be like this all of the time.

How it looks when I restart eclipse (this is how it's supposed to look)

I've been experiencing these problems for a very long time and it's very irritating. I've also reinstalled Windows-7 x64 many times and the problem has never gone away. Please help?

like image 773
snotyak Avatar asked Jul 24 '12 21:07

snotyak


1 Answers

I solved the problem formating the document: Right click on the editor window, from the menu select Source -> format or, in short: Ctrl+Shift+F

like image 61
ja_mesa Avatar answered Nov 06 '22 00:11

ja_mesa