Xcode shortcut

Thursday, July 23, 2009

Xcode is a really good development environment, nice and thick with details that make writing code efficient and pleasant. Among them is certainly the convenience of auto-completion while typing, especially when you write applications for Apple iPhone, where the frameworks are many and remember syntax and nomenclature is undertaking a few. For example, you can access all properties and methods (or message if you like) provided by an object using the key combination ALT+ESC or even ESC

xcode-shortcut

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

xcode-m

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

xcode-method

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

next-completion

We might say, finally, that the most important key - to the aid of auto-completion - is surely the key ESC which suggests 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+/ Comment on a block of code
  • CMD+] Indent right
  • CMD+[ Indent left

Remember, too, that the talk sense (as shown) is configurable in the Preferences in Xcode.

Edit All in Scope

If you used a variable name in your code that you do not like most, do not rush to perform a classic Find & Replace (Find & Replace). Xcode will be meeting with a functionally identical but much more convenient: Edit All in Scope. Choose your variable with a double click and wait a second:

allscope-1

An arrow appears on the right edge, click leads to a drop-down menu that, among other things, allows the operation of Edit All in Scope. Selecting Turn a mode that allows you to change dapperttutto while we replace our variable:

allscope-2

allscope-3

Below you can download - and print - a comprehensive list of shortvut Xcode:

xcodelarge-thumbnail

Related Post

Was this article helpful?: Per nientePocoAbbastanzaMoltoMoltissimo
Loading ... Loading ...

There are no comments for this post

Leave a comment

TAG XHTML PERMISSIONS: <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 [as][/as]           // Actionscript [css][/css]         // CSS Style Sheet [html][/html]       // HTML [js][/js]           // Javascript [objc][/objc]       // Objective-C [php][/php]         // PHP [sql][/sql]         // SQL