Code Completion
Code completion offers you an alternative to typing long method names, argument lists, and other symbols. When you’ve entered enough letters for Xcode to make a reasonable guess, you’ll see the suggestion appear as dimmed text. To accept the suggestion, press Tab. To see a list of all possible completions, press the Esc key.
For symbols that include parameters, such as methods, Xcode optionally inserts placeholders for the arguments. To move to the next placeholder, press Control–/.
To disable or enable code completion, use the Automatically Suggest menu in the Code Sense pane of Xcode preferences.
Try it: Let Xcode complete your code.
Anywhere in the
Protocol.hfile, enterNSthen press Esc to see the completion list that Xcode built so far.In the list that appears, choose any item and press Return. Xcode enters the item you chose.
Delete the entered text so the program will compile.
No comments:
Post a Comment