Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

Nicolo Figiani
4,012 Pointshow can you save and recall a piece of code in Xcode?
how can you save a piece of code in Xcode? and how you can recall it as you've done in the video?
Thanks, bye!
3 Answers

Greg Kaleka
39,018 PointsThere are a couple of ways you could do this. For one, you could simply copy and paste the text into a simple text file.
The second (this is what Pasan does in the video) is to use code snippets. NSHipster has a great tutorial on how to use code snippets.

Nicolo Figiani
4,012 PointsHi, the second point is precisely what I was referring to. Thanks for the link (:

Caleb Kleveter
Treehouse Moderator 37,862 PointsHi Y'all, What do you do for the snippet?