智能感知在 XCode 中工作吗?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1286328/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 18:44:18  来源:igfitidea点击:

Does intellisense work in XCode?

xcodeintellisensecode-completion

提问by AngryHacker

I am a noob to XCode, so forgive what could be a dumb question. It seems like XCode kind of does intellisense (or code completion). When I type in:

我是 XCode 的菜鸟,所以请原谅可能是个愚蠢的问题。看起来 XCode 有点像智能感知(或代码完成)。当我输入:

[self setT

it suggests the setTitle because its the first matching one. Is there a way to make it work a bit more like Visual Studio where you get a dropdown of available methods/properties/etc...?

它建议 setTitle 因为它是第一个匹配的。有没有办法让它更像 Visual Studio,在那里你可以获得可用方法/属性/等的下拉列表......?

回答by Thomas Zoechling

You can press "Esc" for a list of suggestions.
You can also turn on automatic suggestions in the preferences.

您可以按“Esc”查看建议列表。
您还可以在首选项中打开自动建议。

回答by CVertex

Fn + Esc will bring up a list of them, and you may have to enable it in preferences

Fn + Esc 将显示它们的列表,您可能需要在首选项中启用它

It's not always context sensitive (or gets confused about context easily)

它并不总是对上下文敏感(或者很容易对上下文感到困惑)

But it still works

但它仍然有效