'What is the mac keyboard shortcut to select by object in Xcode?

I am learning to use Xcode and SwiftUI and I wonder if there is an equivalent mac shortcut in Xcode for what you do to select code by object. In VS Code it is ctrl + shift + left. And in Android studio is option + up. That way you manage to select relevant pieces of code that sometimes are properties, some other times whole objects. Is this possible on Xcode? This is what happens every time I hit the shortcut shift + up on Android Studio.

enter image description here

Edit:

Defining a key binding to trigger "Balance delimiters" is the nearest behavior I could achieve thanks to @Ptit Xav. Here is what it looks like every time I press the shortcut I defined on Xcode:

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source