Andrei Budaes
Andrei Budaes

Reputation: 21

Why does Xcode stop giving text prediction?

I am trying to learn how to create apps using Xcode. I usually follow tutorials on the internet as Objective-C and Swift come with built-in methods and functions usually hard to remember (at least for me at this stage). Throughout a project, I do not get predictive text any longer and have to type the whole method word-by-word which is not that bad, but can take more time though.

I wonder if anyone knows how to stop this behaviour. I've searched some topics and found I have to Clean my project and Restart Xcode. I tried that (which is usually more time wasting than typing the code altogether) but it still didn't work. On the same project, the predictive text seems to have ceased.

If I open another project however, it works.

Just to clarify, by predictive text I mean typing "UIView" and getting a dropdown menu with everything I would have typed like "UIViewController".

Thanks for all the anticipated help.

Upvotes: 2

Views: 1640

Answers (1)

carlodurso
carlodurso

Reputation: 2894

It's called Code Completion (so you can get more results online).

Can be activated in preferences: "⌘ ," on the Text Editing tab

Alternatively, can be called by pressing the keyboard shortcut "⌥ esc".

screenshot code completion

Upvotes: 1

Related Questions