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

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

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