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

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,021 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 (: