Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autocompletion not working for "@" in Xcode 6

I have an Objective-C project in Xcode 6. In Xcode 5, when I type the "@" character, it autocompletes for you, but it doesn't do that in Xcode 6. I couldn't find an option to enable this in settings/preferences, does anyone happen to know how to get this feature back? For objects, classes and constants etc, autocompletion works.

Thanks a lot!

like image 648
Harry Wang Avatar asked Oct 01 '14 19:10

Harry Wang


People also ask

Why is autocomplete not working Xcode?

This can happen when the file is not a member of the Target. Open the file where autocomplete is not working and show the the "Utilities" tab in the top right of Xcode (blue in the screenshot below). Ensure your Target (typically your app's name) is checked.

How do I get suggestions in Xcode?

Show/hide completions: ⎋ ( Escape ) OR ⌃Space ( Control + Space ) Type some code, use either ⎋ or ⌃Space to toggle auto-complete (I'm hooked on Escape ), and Xcode will offer a few intelligent suggestions to complete your code.

What does Xcode automatically create for each target when a new project is created?

Xcode configures the initial build phases for each target at creation time, but you can add or modify those build phases later. You might add build phases to copy additional files to your app bundle, or to execute custom shell scripts. You can also examine the build phases to diagnose potential issues.


1 Answers

Apple changed an autocomplete behavior and now you should hit ESC right after you pressed @ symbol.

Do not forget to enable this "feature" in settings menu:

Xcode preferences > Text editing > Use Escape key to show completion suggestions

like image 55
slxl Avatar answered Oct 07 '22 23:10

slxl