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?
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.