|
I searched online for this first. But, oddly there's not a lot of info online about xcode it seems. Or, I can't find it yet. And Apple's docs are so cryptic. It reminds me of legal-ese. Anyway, I've been having to resort to an old trick to keep track of my closing braces using comments: }// End main VStack }// End ZStack I see that it flashes the matching brace briefly when one is selected. But, that only works if you can see both at the same time, and code gets long. How do you guys do it? Thanks |
|
If you doubleclick on the ending brace it will highlight the entire block back to the opening brace. |
|
@mark reveals some tough times with the Google...
You had bad luck searching for the wrong string! Instead, try searching for: This is a great shortcut a number of Xcode presenters use in their vids. Code FoldingPlace your cursor inside a This will fold the code showing just the starting and ending brackets with three ellipses inbetween.
As you may guess, Keep Coding! |
|
Thanks @Legion, and man do I feel a little silly now. I could have sworn I already tried double clicking it. ha This code folding looks nice too. Other IDEs do this but I never felt the need to hide anything. Maybe I should try to find a use for it since it seems so useful. Thanks @Obelix |
|
@mark wonders about code folding:
You were looking for ways to find matching braces. |
|
Code folding is a life saver when optimizing the code and you know that you are done with one part.. |
|
I'd so much rather have colorized matching braces etc. as with VSCodium. I don't want my code folded, and don't want it obscured by highlighting. I just want to scan for matching colors, which, for my eyes, are much more findable. Really not possible? |
SPONSORED Join a FREE crash course for mid/senior iOS devs who want to achieve an expert level of technical and practical skills – it’s the fast track to being a complete senior developer! Hurry up because it'll be available only until February 9th.
Sponsor Hacking with Swift and reach the world's largest Swift community!
This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.