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 Swift Basics (retired) Control Flow For-In Loop

How do you make the curly brackets appear at the same time. I have to each one manually.

1

4 Answers

i figured it out all i had to do was press enter after making the first curly bracket. Thanks for the reply though!

Aaron Watson
Aaron Watson
2,551 Points

I think that depends which text editing software you are using...?

I have sublime text setup and it's great for finishing brackets etc :-)

So how were you writing your code? remember that the code should be keep clean for us to read because it will be easier for everyone. Everytime when you have to put brackets, start on next line , it like opening and then write down. If tis like one pice of code , it can be in one line .

And Aaron Watson , is there a way to make closing tags in sublime text when opening ? it sort of annoj me to write them manually now as i have the laziness of Xcode :D

Aaron Watson
Aaron Watson
2,551 Points

Yes they close when you open them. Go to sublimetext.com and try it yourself...

It says you need a licence but it's not enforced. Enjoy

Yes , i have it but it doesn't close automatic . Ill check the site again , maybe there are some options

Aaron Watson
Aaron Watson
2,551 Points

Are you selecting the language you are using? I don't remember changing setting to make that happen.