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.


Keyboard Shortcut in Xcode

Hi. I have a question about a keyboard shortcut I see Pasan using in Xcode on the iOS courses.

When creating an instance of something such as a class or a struct, after typing the object name and then opening a bracket, the object's variables prepopulate as a hint. For example...

person = Person(firstName: "Joe", lastName: "Bloggs")

After typing "Joe", Pasan seems to jump right over to the area to type "Bloggs". At present I manually click on the area to type "Joe" and then click again into the area to type "Bloggs". Does anyone know what the keyboard shorcut to jump to the next variable is?

I know it's a small query but I cannot fathom it out!


2 Answers

Jason Anders
Jason Anders
Treehouse Moderator 145,624 Points

Hey there,

When you have the auto-complete pop up like that. The Tab button moves to the next expected field (as in your example).

Keep Coding! :dizzy: :)

Darn it, the only one I didn't try!

Thank you Jason. :)