same as the topic, just lost lot of stuff without saving..
not in the IDE to my knowledge.
==> use an external code editor offering that feature or remember to press cmd-s / ctrl-s from time to time..
you can use Arduino online coding
it auto saves and you can upload previous codes also so you don't have to start over on other projects you are working on 8) 8)
link: [u]Arduino Cloud
J-M-L:
not in the IDE to my knowledge.==> use an external code editor offering that feature or remember to press cmd-s / ctrl-s from time to time..
Thanks
tomj232:
you can use Arduino online coding
it auto saves and you can upload previous codes also so you don't have to start over on other projects you are working on8) 8)
link: [u]Arduino Cloud
Thanks.
Do you mean the web can automatically upload the previous codes I had in the folder?
Best
I find it best to work in iterations. It helps structure the code also. Break a project down into chunks relating to what you want to do. Work on one small chunk. Once done save then open a new sketch and copy across or ‘save as’ to start a new sketch. The. Work on next chunk.
All my files end up being called things like buttons, buttonsLeds, buttonsLedsRelays etc as I develop more code
It isn't enough, just to save all the time. If you don't work in successive versions, some day you will save junk over something that worked and not be able to figure out what you did wrong. As soon as you have any complete working code, even if it isn't full featured, save it under a new name so the old one won't be lost.
laoadam:
Do you mean the web can automatically upload the previous codes I had in the folder?
no but it is a quick upload
tomj232:
you can use Arduino online coding
it auto saves and you can..
I LOATHE on-line coding of anything! All it does is make you a slave to whatever company is hosting it. If they want you to upgrade? Too bad for you! Or, like Makerbot, where the company gets sold to someone who doesn't care about that product you have to be online for.
Arrgh! Don't get me started!
-jim lee
When you’ll want to be serious about your code and versions etc you’ll start exploring alternative editors and git (or similar) repository - and of course ensure you have a sound backup strategy for the repository
Isn't the program saved every time you try to compile it?
You should be compiling and testing every few minutes.
...R
Isn't the program saved every time you try to compile it?
It's a setting in preferences in the IDE
Of course any major development should get a new version nr.
Deva_Rishi:
It's a setting in preferences in the IDE
What is the default? I don't use the IDE myself?
...R
i have scripts to save all the files in the directory to a named (eg. 200801a) backup directory. i invoke it whenever i get something working.
and yes, more often than i'd like i fowl things up so much I go back to the backup. it also encourages me to try new things requiring big changes
Robin2:
What is the default? I don't use the IDE myself?...R
The default is to save when verifying or uploading. However, as it uses the same filename each time if you "improve" your code, upload it and find a problem there is no way to revert to the sketch as it was before the changes. This is why I turned off the option as soon as it became available
Other editors do have such features
Thanks for all helpers.
I got lot of help from the replies that solved my headache.
Best to all.