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! While you're at it, check out some resources Treehouse students have shared here.

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

HTML How to Make a Website Creating HTML Content Include External CSS

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! :)

2 Answers

Alexander Nortung
Alexander Nortung
6,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 Anders
MOD
Jason Anders
Treehouse Moderator 145,860 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. :)