tags:

views:

1806

answers:

2

When I select multiple lines of code and want to indent them as usual with TAB, it just deletes them all. I come from Eclipse where I always did it that way. How's that done in Xcode? I hope not line by line ;)

+4  A: 

Command-[ and Command-] are the equivalents to shift-tab in Xcode.

Nik
+10  A: 

The keyboard shortcuts are CMD-] for indent and CMD-[ for un-indent.

  • In Xcode's preferences window, click the Key Bindings toolbar button. The Key Bindings section is where you customize keyboard shortcuts.
JWD
Note that these are commonly used Mac OS X key bindings thus you can indent using CMD-] and CMD-[ in, for example, Mail.app.
Gregory Cosmo Haun