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 trialAaresh Jalnawalla
2,363 PointsHow does the instructor get his cursor on the second line along with the } on the third line as soon as he types { ?
Example during:
class xyz {
}
1 Answer
Jason Anders
Treehouse Moderator 145,860 PointsHey Aaresh,
This would be part of the 'auto-complete' functionality of the IDE (Xcode) in this case. It's done by opening the Brace and then just hitting enter. It may be a preference that needs to be turned, if its not working for you.
Under Preferences > Text Editing there should be a checkbox for "Automatically insert closing braces" ... make sure this is checked.
Hope that solves it for you. :)