Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Christina Alexander235 Points
Accidentally deleted index.html, d'oh!
I relaunched the workspace and all my previous work was, of course, gone and the new index.html page was blank. I guess I'm just going to redo everything up to this point (at the point of adding the CSS). In case this happens again, is there any way to save what we are working on, or, alternatively, is there any way to "undo" any accidental mishaps like that? Thanks! :)
Alexander Nortung6,930 Points
I don't think there is a way, but it's good practice to do it again and get an understanding of the code. a good tip is to make it a habit to press CTRL + S once in a while, while working on your code so you won't lose it again :)
Jason AndersTreehouse Moderator 145,840 Points
Hi Christina. Welcome to Treehouse.
If you delete the entire Workspace (Find it from the workspace link in the left nav bar (with the symbol <>). Once it's deleted, go back to the video and relaunch the workspace associated with the video. All the files and code up to that video should be there again.
If you don't delete the old workspace and launch the workspace from the video, it will launch the one you had from before.
Hope that helps. :)