Sublime Forum

[solved]Auto completion trigger stop after previous trigger completion in tex file

#1

Trigger stop after previous trigger completion in tex file. ST3+latextools, I typed em then trigger happened and help me complete the contents \emph{cursor}. However when I entered “bf” like \emph{bf}, the trigger didn’t work. I hope it will be \emph{\textbf{cursor}}. Are there solutions make it work?

Some of my settings:

    "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_commit_on_tab": true,

    "spell_check": false,
0 Likes

#2

looks like a snippet, not a completion - https://github.com/SublimeText/LaTeXTools/blob/e01bc7291cf52f9bc983cd2e20ce00e2bdc8dd12/Text%20emphasize.sublime-snippet

this makes a difference because Tab inside a snippet by default goes to the next field in the snippet rather than inserts a completion or another snippet.

1 Like

#3

Thanks a lot. I tried to put this in my settings, and it works.

    // Controls if auto complete is shown when snippet fields are active.
    // Only relevant if auto_complete_commit_on_tab is true.
    "auto_complete_with_fields": true,
0 Likes

Using tab-trigger on field