Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode code snippets not showing in autocomplete

I've just started using code snippets for the first time, i've added a snippet, set the shortcut, but when I type the shortcut and hit Esc - it doesn't show up. What am I doing wrong? I've tried restarting Xcode too but it still doesn't work. Shortcuts to the other code snippers work fine.

like image 741
Wasim Avatar asked Sep 11 '12 11:09

Wasim


2 Answers

I had same issue, I was not able to get code snippet while start typing. I figure out while editing code snippet I have not mentioned Completion filed and that was the issue.

enter image description here

like image 186
chirag Avatar answered Sep 23 '22 15:09

chirag


When I worked with the code snippet functionality built into Xcode for the first time, I had trouble finding the right "Completion Scope". You could change it to "All" to find out if it's a mistake in there. But in your case I can see you want to post methods so "Top Level" should be alright. Just keep it in mind for the future.

like image 32
Git.Coach Avatar answered Sep 20 '22 15:09

Git.Coach