draivin / hsnips

HyperSnips: a powerful snippet engine for VS Code, inspired by vim's UltiSnips
MIT License
148 stars 23 forks source link

Snippets in Another Snippet #141

Open Y-S-A opened 1 year ago

Y-S-A commented 1 year ago

I write a snippets: snippet / "Fraction" iA \frac{$1}{$2}$0 endsnippet

and : other snippets such as snippet ee iA e^{$1}$0 endsnippet

but when the frac snippet was not finished, I can't use the Exp snippet inside the fraction.

Are there any solution to this? Thank you very much!

Y-S-A commented 1 year ago

I Have just realized that it actually works. What doesn't work is the following:

snippet / iA /frac{${1:1}}{${2:2}}$0 endsnippet

snippet ee iA e^{${1:5}}$0 endsnippet

the prefilled block does not allow other snippet to work.