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 trialHabtamu Nigatu
944 Pointsby trying to indent the main element, I deleted it all by mistake.
by trying to indent the main element, I deleted it all by mistake.
3 Answers
KRIS NIKOLAISEN
54,972 PointsCommand + Z or Ctrl + Z should allow you to undo
Daesha Williams
Front End Web Development Techdegree Student 1,829 PointsYou can press Command + Z on a Macbook or CTRL + Z on Windows to undo it.
You can also head to the top of your window and click Edit, then Undo. All of this will work if you haven't refreshed your page. If you exited it may not work I think, but if it just happened that's a quick fix by undoing by following the steps above.
Hope this helps! :)
Derek Graves
838 PointsBoth are correct and I had the same issue when I tried to indent the first time ctrl+] will indent for ya!
Nick Curtis
2,064 PointsThanks! Was having trouble with this on my Windows PC.