I haven't been able to find anything on the internet mentioning Eclipse's Undo functionality being broken/rubbish, so maybe it's just me. However, I thought I'd ask here and see if anyone else has experienced similar irritation and/or know of a fix.
The most common scenario is that I write a line of code, say:
someString I press enter, which would normally take me to the end of the line / outside the println argument brakets. However, if I've somehow lost the special box highlight around the argument (e.g. by pressing
escape) then enter will give me a new line before the closing bracket. If I now undo with
Ctrl-Z this will undo the newline and the entire word (
someString in this case). I now have the option of redoing and then manually deleting the newline, or typing the remaining bit of the line again. The undoes often span saves, which doesn't make sense to me. You would think that when you save, make a change and then undo, you would go back no further than the save point. However, that's not the case. These minor inconveniences happens so often that I would probably prefer having to undo one character at a time, Emacs style. Anyone know if that is somehow possible?
The less common scenario is one that's even more inconvenient and seems more like an actual bug. Sometimes I make some changes to my code. Run it in debug mode and go play with the interface (normally in a browser). Then 10-20 minutes later, for instance, I hit a breakpoint while I'm typing somewhere (say writing an email), Eclipse jumps up and steals focus and I accidentally type something in my code. Now, when I undo, Eclipse often decides to not just undo the change I just made, but also some of the changes I made 10-20 minutes (sometimes even longer) ago all in one go. Surely this must have happened to someone else? It seems to me that the only "safe" thing to do is
revert to the last save, as you might not know exactly what you've changed accidentally, and the undo takes you back before the last save losing some random code (and the accidental entry might have deleted code as well, if something was selected when Eclipse stole focus).
So, that was a rather long rant. I'd just like to hear if anything else has experienced this, finds it frustrating or even have a solution :)