{"id":19,"date":"2005-08-02T09:44:07","date_gmt":"2005-08-02T13:44:07","guid":{"rendered":""},"modified":"2017-05-22T09:17:27","modified_gmt":"2017-05-22T16:17:27","slug":"using-xcode-to-become-a-faster-programmer","status":"publish","type":"post","link":"https:\/\/www.corbinstreehouse.com\/blog\/2005\/08\/using-xcode-to-become-a-faster-programmer\/","title":{"rendered":"Using Xcode to become a faster programmer"},"content":{"rendered":"<p id=\"top\" \/>You can utilize some of Xcode&#8217;s cool features to become a faster Mac OS X programmer. Here are some things which you may not know:<\/p>\n<p>1. Use Code Completion (Code Sense). However, the default keyboard shortcut is lame. Go to the Xcode preferences, Key Bindings:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/KeyBindingsInXcode.png\" alt=\"Keybindingsinxcode\" width=\"103\" height=\"69\" border=\"1\" hspace=\"4\" vspace=\"4\" \/><\/p>\n<p>and change the <b>Code Sense Completion List<\/b> binding to be Ctrl-Space (I use Option-Space, but <i>really<\/i> it is the ctrl-key, because I like to swap my ctrl and option keys):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/XcodeCodeSenseBinding.png\" alt=\"Xcodecodesensebinding\" width=\"547\" height=\"194\" border=\"1\" hspace=\"4\" vspace=\"4\" \/><\/p>\n<p>While you are there, set the <b>Code Sense Select Next Placeholder<\/b> to be Ctrl-\/ (that is control forward slash, and again, I have mine set to be option-\/ because I swap my keys):<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/CodeSenseNextCompletion.png\" alt=\"Codesensenextcompletion\" width=\"527\" height=\"42\" border=\"1\" hspace=\"4\" vspace=\"4\" \/><\/p>\n<p>2. Now that you have it properly setup, use it! Here is how you should be using it:<\/p>\n<p>You want to call a particular method in your current class (self). Type the first few characters:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/UsingCodeSense1.png\" alt=\"Usingcodesense1\" width=\"202\" height=\"46\" border=\"1\" hspace=\"4\" vspace=\"4\" \/><\/p>\n<p>Hit Ctrl-Space to bring up the Code Sense window:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/UsingCodeSense2.png\" alt=\"Usingcodesense2\" width=\"514\" height=\"209\" border=\"1\" hspace=\"4\" vspace=\"4\" \/><\/p>\n<p>Type a few more characters to narrow down what you want, and arrow key down to select the signature you want to use:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/UsingCodeSense3.png\" alt=\"Usingcodesense3\" width=\"648\" height=\"84\" border=\"1\" hspace=\"4\" vspace=\"4\" \/><\/p>\n<p>Hit enter to add the template into your source code:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/UsingCodeSense4.png\" alt=\"Usingcodesense4\" width=\"737\" height=\"31\" border=\"1\" hspace=\"4\" vspace=\"4\" \/><\/p>\n<p>Fill in the first parameter:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/UsingCodeSense5.png\" alt=\"Usingcodesense5\" width=\"719\" height=\"25\" border=\"1\" hspace=\"4\" vspace=\"4\" \/><\/p>\n<p>Then, hit Ctrl-\/ to go the next completion item and highlight it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"\/blog\/UsingCodeSense6.png\" alt=\"Usingcodesense6\" width=\"713\" height=\"26\" border=\"1\" hspace=\"4\" vspace=\"4\" \/><\/p>\n<p>Repeat with more Ctrl-\/ commands until you are done.<\/p>\n<p>3. Congratulations! You are now a faster programmer.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can utilize some of Xcode&#8217;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&#8230; <a class=\"read-more\" href=\"https:\/\/www.corbinstreehouse.com\/blog\/2005\/08\/using-xcode-to-become-a-faster-programmer\/\">[read more]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4,1],"tags":[],"class_list":["post-19","post","type-post","status-publish","format-standard","hentry","category-apple","category-general"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/19","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/comments?post=19"}],"version-history":[{"count":2,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions"}],"predecessor-version":[{"id":4810,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/19\/revisions\/4810"}],"wp:attachment":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media?parent=19"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/categories?post=19"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/tags?post=19"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}