Yevgeni
Yevgeni

Reputation: 1533

Xcode wont suggest my code snippets

I added a simple code snippet:

code snippet

And when i'm trying to type "tablerows" in my class i get no suggestions. Tried to clean the project didnt help.

Any ideas? Thank you.

Upvotes: 0

Views: 82

Answers (2)

Yevgeni
Yevgeni

Reputation: 1533

Restart XCode completely, to apply the changes. Thanks to @Moshe

Upvotes: 0

Anindya Sengupta
Anindya Sengupta

Reputation: 2579

The completion scope is important. If you have set it to be "Class Implementation" then you have to try the shortcut in the class -- outside any methods. I hope you are doing that, since the code snippet is actually a method.

Upvotes: 1

Related Questions