Time for action – working with code completion
To accept the auto completion suggestion, follow these simple steps:
- Press the Tab key and the code will be inserted just as if you had typed in the whole thing.
- Press Return to accept the entire auto completion suggestion. You will notice from the screenshot below that Xcode is smart enough to work out what you intended to type in. As soon as you get to a point in each line, it will display an autocompleted version of the code:
A Quick Help popup is also available from code completion, even when the Quick Help inspector is not open. Hover over the code completion option you're interested in until a question ...