Xcode Format Key

September 22nd, 2011 technology no comments

Since using xcode 4 I have lost all my nice settings for xcode 3. Like in Processing I love the ⌘ t command to format your code. Here is how to setup at hot-key for xcode 4;

1. open up xcode
2. goto xcode->Preferences… or ⌘,
3. click on the tab Key Bindings
4. scroll to the “Editor Menu for Source Code” tab

5. the Command “Re-Indent” will auto indent your code by default is ^| this is a bit hard to type so it might be nice to make something else. I like ?T but that is bound to another key. I set mine to ⌘;

enjoy.

Say Something