How can I indent multiple lines in Xcode?

Thanks picture Thanks · May 6, 2009 · Viewed 195.2k times · Source

When I select multiple lines of code and want to indent them as usual with TAB key, 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 ;)

Answer

JWD picture JWD · May 6, 2009

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

  • In Xcode's preferences window, click the Key Bindings toolbar button. The Key Bindings section is where you customize keyboard shortcuts.