@mark reveals some tough times with the Google...
I searched online for [...find matching braces] first. But, oddly there's not a lot of info online about xcode it seems.
You had bad luck searching for the wrong string!
Instead, try searching for: Xcode code folding
This is a great shortcut a number of Xcode presenters use in their vids.
Code Folding
Place your cursor inside a VStack, ForEach
group, Button, function
, class
, or anything delimited by brackets.
Then hold Option-Command-LeftArrow.
aka ⌥ ⌘ ⬅️
This will fold the code showing just the starting and ending brackets with three ellipses inbetween.
// Example of folded code
VStack{ ... } // end of VStack
// or
struct DeleteExpenseView: View { ... } // <-- folded view struct
As you may guess, Option-Command-RightArrow
expands a folded code group.
Keep Coding!