Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode 4 no code completion

I have been using Xcode 4 for 2 weeks and I noticed that I don't get code completion macros for if-else and switch statements.

Like this article describes: http://macdevelopertips.com/xcode/xcode-code-completion-macros.html

I had it working in the beginning, but it suddenly stopped.

like image 691
Irina Avatar asked May 27 '11 21:05

Irina


People also ask

Why is autocomplete not working Xcode?

Go to Xcode > Preferences > Text Editing again. Quit out of Xcode and then relaunch Xcode. Now go to Code completion and check 'Suggest completions while typing'. Try typing library function or enum and enjoy!

Does Xcode have code completion?

Xcode tip #9: Xcode has great code completion built right in, but sometimes as you scroll through the options you might find the names are too long to fit. Fortunately, you can just grab the edge of the autocomplete popup and drag it as wide as you want!

How do I show suggestions in Xcode?

Press the escape key when auto-complete makes the first suggestion. This will display the list.


1 Answers

Have you tried deleting the project's derived data (which contains the project index used by Code Sense)?

To do so, open the organizer (Window -> Organizer), then the Projects tab. Select your project then hit the delete button next to the derived data path (to the right). Confirm and let it re-index your project.

like image 112
Joshua Nozzi Avatar answered Oct 08 '22 20:10

Joshua Nozzi