简体   繁体   English

奇怪的Xcode自动完成

[英]Weird Xcode autocomplete

I've updated my Xcode yesterday to version 7.3 and since then I got a really strange autocomplete (marked text, case sensitive etc.): 昨天我将Xcode更新到7.3版,此后,我得到了一个非常奇怪的自动完成功能(标记文本,区分大小写等):

图片

Is it something of the new version? 它是新版本吗? Can I turn it off and use the classic autocomplete of Xcode? 我可以关闭它并使用经典的Xcode自动完成功能吗?

Thank you! 谢谢!

Yes, it is a new autocomplete in the new Xcode version. 是的,它是新Xcode版本中的新自动完成功能。 It uses fuzzy matching to provide suggestions. 它使用模糊匹配来提供建议。 I haven't found a way to turn it off, but give it a shot. 我还没有找到一种关闭它的方法,但是请尝试一下。 The old autocomplete is absolutely dreadful. 旧的自动完成功能绝对令人恐惧。 I used to install a Fuzzy Autocomplete plugin to make it work properly. 我以前安装了Fuzzy Autocomplete插件以使其正常工作。

In the old days (in case of Objective-C, for instance, but it's the same with Swift), if you wanted to implement 在过去(例如,对于Objective-C,但与Swift相同),如果要实现

- tableView:heightForRowAtIndexPath:

you typed -tableView , saw all the methods starting with tableView: , then you added a colon, and the autocomplete died. 您输入-tableView ,看到了以tableView:开头的所有方法,然后添加了一个冒号,并且自动完成功能消失了。 Now you can just enter something like -tv:hfrowatinp , and you instantly get your method. 现在,您只需输入-tv:hfrowatinp ,即可立即获得方法。

It will take a bit of time getting used to, but it's worth it, trust me. 习惯需要一些时间,但是值得,请相信我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM