objective-c code formatting -


what way format piece of code?

uibarbuttonitem *prev = [[uibarbuttonitem alloc] initwithtitle:@"prev"                         style:uibarbuttonitemstylebordered                         target:self                         action:@selector(setdaterangeclicked:)]; 

taking question meaning, best way format code use xcode.

highlight code format, to edit -> format -> re-indent , have code in "standard" xcode formatting.

i've mapped keyboard shortcut alt-cmd-[ used textmate. it's buried under lots of menus, keyboard shortcut handy this. if use textmate, click inside block format , press ctrl-q. textmate has problems style of formatting though.


Comments

Popular posts from this blog

c++ - Convert big endian to little endian when reading from a binary file -

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -