I'm trying to modify the existing html autocompletions. To do so, I have tried:
1. Modifying the existing "HTML.sublime-complesions" in "AppData\Roaming\Sublime Text 2\Packages\HTML":
changing
- Code: Select all
{ "trigger": "a", "contents": "<a href=\"$1\">$2</a>" },
to
- Code: Select all
{ "trigger": "a", "contents": "<abc href=\"$1\">$2</abc>" },
2. adding a custom "HTML.sublime-completions" in "AppData\Roaming\Sublime Text 2\Packages\User":
consisting of
- Code: Select all
{
"scope": "text.html - source - meta.tag, punctuation.definition.tag.begin",
"completions":
[
{ "trigger": "a", "contents": "<abc href=\"$1\">$0</abc>" }
]
}
3. 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