I feel the Arduino IDE like a liar, It's interface alway show your new-version code ,and write new-version code to board, but don't save a bit in hard drive. If u close it, there is no warning to tell your save your work. It is a so easy to add a function to remind users save work. I think I'm not the only one who has this trouble.
Thank you pYro_65 for sharing.