Created
August 14, 2013 17:45
-
-
Save ravinsharma12345/6233530 to your computer and use it in GitHub Desktop.
Random stuff, no time to arrange.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scope": "text.html - source - meta.tag, punctuation.definition.tag.begin", | |
"completions": | |
[ | |
{ "trigger": "a", "contents": "<a href=\"$1\">$0</a>" }, | |
{ "trigger": "abbr", "contents": "<abbr>$0</abbr>" }, | |
{ "trigger": "acronym", "contents": "<acronym>$0</acronym>" } | |
] | |
} | |
Plain Strings | |
-------------- | |
"foo" | |
# is equivalent to: | |
{ "trigger": "foo", "contents": "foo" } | |
Trigger-base completions | |
----------------------- | |
Trigger-based Completions | |
trigger | |
Text that will be displayed in the completions list and will cause the contents to be inserted when validated. | |
contents | |
Text to be inserted in the buffer. Can use snippet features. | |
Sources for completions | |
----------------------- | |
.sublime-completions | |
EventListener.on_query_completions() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment