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

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:

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:
![]()
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):
![]()
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 MouseAllows you to select columns -
CMD + Doppio Clickrefers 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:

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:


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













There are no comments for this post
Leave a comment