Hello,
I’m trying to modify the existing html autocompletions. To do so, I have tried:
- Modifying the existing “HTML.sublime-complesions” in “AppData\Roaming\Sublime Text 2\Packages\HTML”:
changing
{ "trigger": "a", "contents": "<a href=\"$1\">$2</a>" },
to
{ "trigger": "a", "contents": "<abc href=\"$1\">$2</abc>" },
- adding a custom “HTML.sublime-completions” in “AppData\Roaming\Sublime Text 2\Packages\User”:
consisting of
[code]{
“scope”: “text.html - source - meta.tag, punctuation.definition.tag.begin”,
“completions”:
{ "trigger": "a", "contents": "<abc href=\"$1\">$0</abc>" }
]
}[/code]
- Doing both at once.
However, none of them adds any new option to the completions-list or changes the result of the autocomplete, even though modifying the preferences or snippets works perfectly fine.
Is there an obvious reasons / something I’m doing wrong that prevents this from working? If so, how should I implement custom completions to override the default ones?
Thanks in advance,
Tobl
My system:
Windows 7 64-bit;
Sublime Text 2, Version 2.0.1, Build 2217