Find myself frequently invoking a snippet within a snippet, but of course when I go to expend the nested snippet, the tab key moves me to either the next entry of the first snippet or the end of the first snippet (at which point, I have to replace the cursor at the end of the tab-trigger expression for the 2nd snippet and hit tab, at which point the 2nd snippet is expanded).
eg. given snippet [ content A ${1:First point in A} and ${2: Second point in A} ] with tab-trigger tabtrigA and snippet [ content B ] with tab-trigger tabtrigB
I'd like to be able to do the following:
In[1]:
tabtrigA % Hit tab to expand snippet A
Out[1]:
[ content **A First point in A** and ${2: Second point in A} ] % where everything between ** ** is highlighted
Now replace **...** content with tabtrigB
In[2]:
[ content tabtrigB* and ${2: Second point in A} ] % where * marks location of cursor.
and hitting tab would result in:
Out[2]:
[ content [ content B ]* and ${2: Second point in A} ] % where * marks location of cursor
and hitting tab again would then jump to second entry of snippet A
Obviously this is tiresome: is it possible to switch the priority assignment of tab so that it first acts as a tab-trigger and only jumps to next entry if there is no tab-trigger?
Update: as of April 2019, still no solution for triggering a snippet within a snippet.
"auto_complete_with_fields": true,in your user preferences file?