When I program a sketch in the IDE, everything I've changed since the last save is lost if the laptop goes into power-saving mode.
Sometimes when opening the IDE, the upper part of the IDE window is missing. The window header, which contains the sketch name, the IDE version number, and the X to close it, was not visible.
Does your IDE automatically save changes? If not, that might be one option to prevent the loss.
This is a very old problem that occurs in a number of previous versions as well. I have to admit that it seems to happen more often in IDE 2.3.5 than in IDE 2.3.4.
auto-saving isn't my way of working. I want to decide for myself whether my changes are saved. Often, I don't want to save changes to the old sketch, but rather to a new one. Losing changes due to power-saving mode is a no-go.
I'm not sure I understood correctly what you mean by this. Please provide a more detailed description of what you mean in a reply on this forum topic to help us to understand it.
Do you mean that the changes simply disappear from the Arduino IDE editor when the laptop goes into that mode?
Or are the changes still present in the editor, but you are not able to save them when it goes into that mode?
That's fine, it isn't for a lot of people; it was just a suggestion (option). The alternative is to save manually (before the laptop falls asleep ).
Personally I don't rely on non-saved stuff (code, documents etc) staying alive in a PC. Every morning I make a backup of code that I'm working on and further I save regularly; I also add basic version numbers (as a comment) to every change/addition so I can find them back and undo.
Yes, the changes simply disappear from the Arduino IDE editor when the laptop goes into that mode. When I wake up the laptop, I can see the changes briefly, then there is a kind of refresh and the changes are gone