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.

iOS Build a Playlist Browser with Swift Building the Music Library and Playlist Models Creating a Music Library

Nicolo Figiani
Nicolo Figiani
4,012 Points

how 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
Greg Kaleka
39,018 Points

There 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
Nicolo Figiani
4,012 Points

Hi, the second point is precisely what I was referring to. Thanks for the link (: