XCode Tip: Autocomplete

I personally love XCode, especially compared to other IDEs I’ve worked with in the past (looking at you Eclipse!). The fonts and colors are beautiful, and it does what I want for the most part.

Another great thing about XCode is its amazing autocomplete functionality. This becomes really apparent in those old-style job interviews where they get you to code Objective-C on a whiteboard – my usual response is “this method is something like this…”. I rely on XCode autocomplete so much, I actually don’t know all the long iOS API method names by heart.

However, I’ve noticed that in XCode 6 with Swift, autocomplete doesn’t work as smoothly in all cases. So I learned a new trick:

Control + SpaceBar triggers XCode’s autocomplete functionality. Yep, this is the same keyboard shortcut as Eclipse and many other IDEs use for the same purpose.

Enjoy the autocomplete life again 🙂

Enjoy the article? Join over 14,500+ Swift developers and enthusiasts who get my weekly updates.

  • rayascott

    Even simpler: just press the [esc] key.

    • inix

      hi,your tips help me a lot.Thank you

  • Kevin Hirsch

    Very useful indeed! You’ll want to check FuzzyAutocomplete plugin for Xcode that sets autocomplete filter the same way as Open Quickly. https://github.com/FuzzyAutocomplete/FuzzyAutocompletePlugin
    Once you have tried it, you cannot live without it anymore!

    • accatyyc

      Wow, thank you. This is a great plugin.

  • Sam

    Compare to visual studio, xcode is dinosaur

  • I had no idea – I’ve always used the escape key. Thanks for sharing!

  • Alex

    The autocomplete is slow in Xcode 8 so I have to disable it when typing, but with XVim installed, ESC is not an option, control+space does the trick, cool!

  • teejay_1987

    Have you ever used Visual Studio?