Fogmeister
Fogmeister

Reputation: 77641

Reset/fix Xcode 4.5 code completion

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.

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

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.

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?

Thanks for any help.

Upvotes: 4

Views: 1267

Answers (1)

Fogmeister
Fogmeister

Reputation: 77641

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

Upvotes: 5

Related Questions