Using Xcode to become a faster programmer

Apple, General

You can utilize some of Xcode’s cool features to become a faster Mac OS X programmer. Here are some things which you may not know:

1. Use Code Completion (Code Sense). However, the default keyboard shortcut is lame. Go to the Xcode preferences, Key Bindings:

Keybindingsinxcode

and change the Code Sense Completion List binding to be Ctrl-Space (I use Option-Space, but really it is the ctrl-key, because I like to swap my ctrl and option keys):

Xcodecodesensebinding

While you are there, set the Code Sense Select Next Placeholder to be Ctrl-/ (that is control forward slash, and again, I have mine set to be option-/ because I swap my keys):
Codesensenextcompletion

2. Now that you have it properly setup, use it! Here is how you should be using it:

You want to call a particular method in your current class (self). Type the first few characters:

Usingcodesense1

Hit Ctrl-Space to bring up the Code Sense window:

Usingcodesense2

Type a few more characters to narrow down what you want, and arrow key down to select the signature you want to use:

Usingcodesense3

Hit enter to add the template into your source code:

Usingcodesense4

Fill in the first parameter:

Usingcodesense5

Then, hit Ctrl-/ to go the next completion item and highlight it:

Usingcodesense6

Repeat with more Ctrl-/ commands until you are done.

3. Congratulations! You are now a faster programmer.

Tags:


Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

Subscribe to new posts:

You'll get an email whenever a I publish a new post to my blog and nothing more. -- Corbin

As an Amazon Associate I earn from qualifying purchases.

(c) 2008-2024 Corbin Dunn

Privacy Policy

Subscribe to RSS feeds for entries.

63 queries. 0.176 seconds.

Log in