重置/修复Xcode 4.5代码完成 [英] Reset/fix Xcode 4.5 code completion

查看:63
本文介绍了重置/修复Xcode 4.5代码完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Xcode 4.5中的新功能"之一被认为可以大大改善代码的完成度.本来应该学习您定期键入的内容,并更频繁地提供这些内容作为代码完成的选项.

One of the new "features" in Xcode 4.5 was supposed to be vastly improved code completion. It was supposed to learn what you type regularly and provide these more frequently as options for code completion.

但是,对我来说这根本不起作用.

However, for me this isn't working at all.

NSString是著名的不好的代码补全单词之一.

One of the famously bad code completion words is NSString.

当我键入它时,我得到...

When I type it I get...

NS - NSAddedPersistentStoresKey
NSS - NSSaveChangesRequest
NSSt - NSStoreModelVersionHashesKey
NSStr - NSStream
NSStri - NSStrikethroughStyleAttributeName
NSStrin - NSString

我从未使用过给出的任何其他建议,但大多数我实际上不确定它们是什么.每天我多次使用NSString,为什么不首先建议使用它呢?实际上,除了NSSet之外,我认为我从未使用过另一个以NSS开头的类.

I have never used any of the other suggestions given and most of them I'm not actually sure what they are. I use NSString many times a day, why wasn't it suggested first? In fact, apart from NSSet I don't think I've ever used another class that begins with NSS.

另外,当寻找NSLog()时,当我键入NSL时会得到建议,我现在得到了...

Also, when looking for NSLog() which used to get suggested when I typed NSL I now get...

NS - NSAddedPersistentStoresKey
NSL - NSLayoutAttribute
NSLo - NSLoadedClasses
NSLog - NSLog(<#id, ...#>)

再次,从来没有听说过其他人.

Again, never heard of the others.

有什么办法可以解决此问题,以便获得苹果公司应该获得的功能?

Is there any way to fix this so that I get the functionality that Apple says I should be getting?

感谢您的帮助.

推荐答案

好,我从〜/Library/Developer/Xcode/中删除了UserInfo文件夹,并且似乎已经修复了该问题.

OK, I deleted the UserInfo folder from ~/Library/Developer/Xcode/ and it seems to have fixed it.

这篇关于重置/修复Xcode 4.5代码完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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