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

HTML HTML Basics Images, Text and Links Adding Images to the Page

Shane Curry
Shane Curry
2,219 Points

I accidentally deleted my entire index.html file at this stage. Is there any way to recover this?

I cannot seem to find the example file in its entirety posted anywhere. It would be a pain to go back to the beginning at this point and have to recreate the whole file.

2 Answers

Sadly if you deleted the file then it is gone. I am unaware of any recovery options built into the supplied software (from Treehouse). Unsure if this will work but have you looked in the recycle bin? Not sure where/how the files are maintained when you launch a workspace but if they are regular files then it may have been moved there and you can recover that.

If you only deleted the contents and have not restarted the software then you can simply use the undo command (edit menu) to go back a few steps to get your code back.

Rob Allessi
seal-mask
.a{fill-rule:evenodd;}techdegree
Rob Allessi
Front End Web Development Techdegree Student 8,599 Points

Shane Curry

You can also launch a new workspace from the video you're on and copy the index.html file from there and paste it into your old workspace, then make any adjustments to it as needed.