Hi, I has just looking at the documentation for snippets and started wondering whether they somehow support optional arguments for functions?
For example, when I implement
lm(formula, data, subset)
as a snippets, the content would look like this
<content><![CDATA[lm(${1:formula}, ${2:data}) , ${3:subset})]]></content>
But data and subset are optional options (only formula is required). What is the best way to handle this situation with snippets. Is there a way to indicate that parts are optional so that they are not inserted by default but only come up for autocompletion within the function?
Thanks!