34
My first big project just crashed my computer and I lost everything
I was working on a simple to-do list app in Python last night, about 3 hours into it, and I guess I had too many browser tabs open. My computer just froze up and I had to force shut it down. I hadn't saved my code at all because I was in the zone. Now I'm trying to figure out if there's a way to recover unsaved files from VS Code or if I just have to start over from scratch. Has anyone else had this happen and found a good auto save setting or something?
3 comments
Log in to join the discussion
Log In3 Comments
emmawood2mo agoTop Commenter
Start saving every 5 minutes. It's an easy habit to learn.
3
hunt.nora2mo ago
That works fine until your power goes out, @emmawood.
9
scott.drew1mo ago
Nora's right, a power outage will get you either way. I started using the Auto Save feature in VS Code set to afterDelay and it's been a lifesaver. You can set it to save every 1 second if you want, it's under File > Auto Save. I'd pair that with the GitLens extension too, it lets you see version history so you can roll back if something goes wrong. Also, get into the habit of hitting Ctrl+S every time you pause to think, it becomes muscle memory pretty quick. Your mileage may vary on the exact settings, but having both auto save and manual saves running is way better than relying on just one.
2