I've been developing a function to go into a larger sketch. Doing it in a stand alone sketch. Seemed to be working but hadn't run in debug mode to be sure. Been doing backups as I went along. Went for dinner. When I came back it was all gone. The main sketches were still fine. The development sketch showed 6 blank lines.
What can I do to recover my function code?
Did you have AUTO SAVE enabled in the preferences ?
The Arduino site will auto log out (cannot remember the time out period) and for that reason it is always best to do a proper SAVE or SAVE AS before leaving anything for an extended period.
Just as you would if working with any computer project even such as word processing to make sure if something crashes you always have the latest available.
They might be able to pull something back tomorrow but its a little late in the day (Italian time).