为什么 Xcode 停止提供文本预测? [英] Why does Xcode stop giving text prediction?

查看:26
本文介绍了为什么 Xcode 停止提供文本预测?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试学习如何使用 Xcode 创建应用程序.我通常会学习互联网上的教程,因为 Objective-C 和 Swift 带有通常难以记住的内置方法和函数(至少在现阶段对我而言).在整个项目中,我不再获得预测文本,必须逐字输入整个方法,这还不错,但可能需要更多时间.

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.

我想知道是否有人知道如何阻止这种行为.我搜索了一些主题,发现我必须清理我的项目并重新启动 Xcode.我试过了(这通常比完全输入代码浪费更多的时间)但它仍然不起作用.在同一个项目中,预测文本似乎已经停止.

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.

只是为了澄清,通过预测文本,我的意思是输入UIView"并获得一个下拉菜单,其中包含我会输入的所有内容,例如UIViewController".

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

感谢所有预期的帮助.

推荐答案

它被称为代码完成(因此您可以在线获得更多结果).

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

可以在首选项中激活:文本编辑标签上的⌘"

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

或者,可以通过按键盘快捷键⌥ esc"来调用.

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

这篇关于为什么 Xcode 停止提供文本预测?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆