如何让自动完成在 Xcode 中显示一个列表 [英] How can I make auto-complete display a list in Xcode

查看:13
本文介绍了如何让自动完成在 Xcode 中显示一个列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何像在 Visual Studio 和 Eclipse 中一样在 Xcode 中使用自动完成功能?特别是在 VS 和 Eclipse 中,自动完成会显示一个选项列表……而 Xcode 只显示一个选项.

How can I use auto-complete in Xcode like I can in Visual Studio and Eclipse? Specifically in VS and Eclipse auto-complete displays a list of choices... while Xcode just displays a single choice.

例如,当我输入myV"时,Xcode 可能会建议myVariable".这很好,但是如果我的函数范围内有以下对象怎么办:myInt1"和myInt2"?当我输入myI"时,Xcode 会建议myInt1",但我想要一个列表.或者,比如说,像在某些 shell 中那样,通过各种可能性进行选项卡会很棒.因此,输入myI"会得到建议myInt1",然后按 Tab 会将建议更改为myInt2".

For example Xcode might suggest "myVariable" when I type in "myV". That's fine but what if I have the following objects in the scope of my function: "myInt1" and "myInt2"? Xcode will suggest "myInt1" when I type "myI" but I'd like to have a list. Or it would be great to, say, tab through the various possibilities like in some shells. So typing "myI" would get the suggestions "myInt1" and then pressing tab would change the suggestion to "myInt2".

干杯!

推荐答案

当自动完成提出第一个建议时按退出键.这将显示列表.

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

这篇关于如何让自动完成在 Xcode 中显示一个列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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