XCode suggest me “NSSet” when I typed “NSS”. It is not very good for me. I use NSString quite often.
Is it possible to suggest “NSString” when I typed “NSS”?
XCode suggest me NSSet when I typed NSS. It is not very good for
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Type
NSStringinto the editor, select that and drag it with your mouse to Code Snippet Library (⌃⌥⌘2 if not open), then set its completion shortcut to something not used by Xcode, like “foo”.Now every time you want to use
NSStringjust typefooand Xcode will offer to auto-complete withNSString. It requires some time to get used to typing something else just like with macro Srikar suggested, but it doesn’t add anything new to code itself.BTW, related comic: https://i.stack.imgur.com/9tcxD.png