I hope that somebody here can suggest me a way to make the TAB key indent a text selection (i.e., could be multi-line and not just one line) in Xcode.

In Xcode preferences, I set TAB as the shortcut for the "Shift right" function but it does not work: instead of indenting, it deletes the text.

Thank you in advance for your help.


You can use BetterTouchTool to rebind TAB ⇥ key to ⌘ CMD+] only for Xcode.app. BetterTouchTool can be downloaded here. This is how this should look like:

enter image description here I've tested this and it works for me.

  • Thanks, it works. However, it requires BetterTouchTool to run in background. I hope there is a lighter solution. – Khue Jan 15 '15 at 17:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .