Hey guys,
It’s my first time posting here; I just created the account because I’m having some trouble and not finding a working solution on the web. I will appreciate your patience, as I am very unexperienced with the issues I’m going to expose here.
I updated Sublime Text today, I am unsure about what version I had before, this one tells me it’s build 4107 if that makes sense. Before the update, my LaTeX completions were working perfectly fine. However, I immediately noticed two problems after the update, which are the following:
-
What I type after an underscore does not trigger the autocomplete options to appear. I can in principle leave a blank space and then use the feature, but it makes the math much more difficult to read, and is just overall very annoying. How can I make completion suggestions appear for the text typed after an underscore? That used to be the case before the update.
-
Most importantly, the autocompletion completely ignores my preferences. For instance, “a” used to turn into “\alpha” when pressing tab. Now, even though “a” appears as an autocompleting option tied to “\alpha” (so it seems as though my completion files are nicely recognized, but more on this below), I have to scroll down through all the options every single time, with every completion. Needless to say, this is extremely aggravating. How can I force Sublime to preferentially suggest my custom completions?
In the file LATEX math.sublime-completions I have before the completions:
“scope”: “text.tex.latex string.other.math, text.tex.latex meta.environment.math”
In the file LATEX.sublime-completions I have before the completions:
“scope”: “text.tex.latex - (string.other.math, meta.environment.math)”
I used to have both in this second form, but after the update the completion files are ONLY recognized if I have them in this particular way for the respective files. The file preferences.sublime-settings is as follows:
{
"auto_complete": true,
"auto_complete_commit_on_tab": true,
"auto_complete_selector":
[
"latex - comment",
"meta.tag - punctuation.definition.tag.begin, source - comment - string.quoted.double.block - string.quoted.single.block - string.unquoted.heredoc"
],
"auto_complete_triggers":
[
{
"characters": "<",
"selector": "text.html",
},
{
"characters": "\\",
"selector": "text.tex.latex",
}
],
"auto_complete_with_fields": true,
"color_scheme": "Packages/New Moon Color Scheme/New Moon.tmTheme",
"font_size": 11,
"ignored_packages":
[
"Vintage",
],
"theme": "Adaptive.sublime-theme",
}
I would appreciate if someone could clarify what the problems are and how to solve them. I don’t know if I should have created more than one thread since these seem like unrelated issues; my apologies if this would’ve been more appropriate. Also, I have no experience whatsoever with these types of issues, so I again ask for your patience; I had trouble setting up the completions back in the day but finally got it working, and it is frustrating to have it broken.
Thanks a lot in advance!