Sublime Forum

Need help, starting off with completions

#1

Hi all!,

I’m trying to get my head around making a completions list. I’ve been looking at other pre-existing ones to get my head around it but I can’t seem to get my own working.
I created this super simple sublime-completions file, and from other scripts it picks up on the “yeay” but pressing tab won’t do “This is a test!”. I thought that the yeay was meant to be the trigger for what’s next. I have my head around snippets, but this seems a little different…

[code]{
“scope”: “source.js”,
“completions”:

{ "trigger": "yeay", "contents": "This is a test!"},
]

}[/code]

Anyway, If anyone could help me get going it would be great!
Thanks
Pete

0 Likes

#2

You have a suspicious trailing comma there.

Also, have you seen this?:

docs.sublimetext.info/en/latest/ … tions.html

0 Likes

#3

Ah! Thanks guillermooo that was it :smile:

0 Likes