Xcode: TAB key for indenting selection

keybindingskeyboardxcode

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.

Best Answer

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.