because i use a web-browser, i press CMD+T allot.. to get tabs, and so often i accidentally press CMD+T in the arduino IDE. and then end up finding my script all different from how i typed them.. and then it is usually to late to go for CMD+Z...
I have never done that by accident - but I also do not like what the autoformatting does sometimes, in terms or organzing a set of lines, orthe extra blank lines that get added. It is good for checking the matching of (), {}, etc. tho.
pressing 'control z' will undo one change at a time, but it will not jump to the position of what you undo. so if there are allot of undoes you will not be able to know how much you are undoing.. unless you have excellent memory.. getting older so this will only get worse..