Xcode shortcut

Xcode is a really good development environment, nice and full of details that make writing efficient code and pleasant. Among these is the ease of auto-complete when typing, especially when writing applications for Apple iPhone, where the frameworks are many and remember syntax and nomenclature company by a few. : For example, you can access all the properties and methods (or message if you like) provided by an object using the key combination ALT+ESC or just ESC :

xcode-shortcut

In the picture above, for example, you selected an object of type UIView . After entering the "point", by pressing ALT+ESC will receive a list of all the properties for that specific class. This also works with personal names of variables, such UILabel *myLabel . In addition, Xcode recognizes also immediately call to a method-message:

xcode-m

But the best I have yet to come! The auto-complete, in fact, works equally well on the "functions" (method-message) with parameters as in the case illustrated below:

xcode-method

Here we make use of two useful features: the first is that cycles of all the similar functions, just press CTRL+(punto) or the Next Completion. Found the function, which can have multiple input parameters, you can automatically move to the next with the Comboni CTRL+/ (Control + Shift + 7):

next-completion

We could say, in the end, the key most important - to help auto-completion - is definitely the key ESC , which offers a complete list of on-screen help also empty!

Functional aggiutive really useful

Working in the editor we need not only the AutoComplete:

  • ALT + Click Mouse : Allows you to select columns
  • CMD + Doppio Click : refers to the definition of a function, method, proper, typedef, etc ...
  • CMD+/ : a block of code comments
  • CMD+] : indents to the right
  • CMD+[ : left indents

Remember, too, that the Sense Things (as indicated) is configurable in the Preferences of Xcode.

Edit All in Scope

If you used a variable name in your code that you do not like most, do not rush to make a classic Find & Replace (Search & Replace). Xcode will meet with identical functionality but much more convenient: Edit All in Scope. Choose your variable with a double click and wait a few seconds:

allscope-1

On the right side arrow appears, clicking it leads to a drop-down menu that, among other things, allows the operation of Edit All in Scope. Selecting a mode that allows you to change dapperttutto our variable and replace it:

allscope-2

allscope-3

Below you can download - and print - an exhaustive list of shortvut Xcode:

xcodelarge-thumbnail

There are no comments for this post

Leave a comment

XHTML TAG PERMIT: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> INSERTION CODE:
 <pre></pre> // blocco generico <code></code> // blocco generico [cc_actionscript][/cc_actionscript] // Actionscript [cc_actionscript3][/cc_actionscript3] // Actionscript 3 [cc_css][/cc_css] // CSS Style Sheet [cc_html][/cc_html] // HTML [cc_js][/cc_js] // Javascript [cc_objc][/cc_objc] // Objective-C [cc_php][/cc_objc] // PHP [cc_sql][/cc_sql] // SQL 


Stop SOPA