Home > database >  What is the mac keyboard shortcut to select by object in Xcode?
What is the mac keyboard shortcut to select by object in Xcode?

Time:02-21

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

CodePudding user response:

In Xcode it can be done by Editor/Selection/Balance Delimiters

If you want a keyboard shortcuts you can add one in Preferences/Key bindings (you can add/change shortcuts for almost any action)

  • Related