IDE startup on windows 10

I'd love it if the IDE would start up with the same sketch i closed it with and in the same position on screen, but it doesn't. it always starts with a useless empty sketch and the position is off the top of my screen somewhere

i've tried editing preferences.txt but the IDE changes it every time it closes so no point really.

is there a know way to make it start up with the same sketch i closed it with (or a specified sketch is fine) and in the same position on screen?

thx

The IDE is supposed to do both of these things but there is a bug in Arduino IDE 1.8.8:

The bug has already been fixed, but there has not been an IDE release since. If you really need the correct behavior now, you can use Arduino IDE 1.8.7 or the Hourly Build of the Arduino IDE. If you use the latter, be aware that it is intended primarily to be used for beta testing and may have some bugs.

thanks, i'll try the hourly build

I did and it works great, starts up perfect

You're welcome. I'm glad to hear it's working now. Enjoy!
Per

and may have some bugs.

I'd say, given the Arduino team's track record, that "WILL have some bugs" is far closer to the mark.