Reset / Fix Xcode 4.5 Code Completion

One of the new “features” in Xcode 4.5 was to significantly improve code completion. It was assumed that you regularly find out what you are typing, and provide them more often, as options for code completion.

However, for me this does not work at all.

One of the great words to complete the code is NSString.

When I print it, I get ...

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

I have never used any other suggested suggestions, and most of them I am not really sure what it is. I use NSString many times a day, why hasn't it been suggested before? In fact, besides NSSet, I don’t think I have ever used another class that starts with NSS.

Also, when searching for NSLog (), which was previously suggested when entering NSL, I now get ...

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

Again, never heard of others.

Is there a way to fix this in order to get the Apple functionality that I should get?

Thanks for any help.

+4
source share
1 answer

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

+5
source

Source: https://habr.com/ru/post/1435306/


All Articles