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 :

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:

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:
![]()
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):
![]()
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:

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:


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










There are no comments for this post
Leave a comment