I'm trying to set up a snippet for building a set with appropriate spacing. I want the snippet to generate the following markup when I type "set" + TAB:
\{ \, content here \, \}
I have the following snippet:
<snippet>
<content><![CDATA[
\{\, ${1} \,\}
]]></content>
<tabTrigger>set</tabTrigger>
</snippet>
However, this produces the following:
{\, \,}
It's escaping the first backslash and the last one. Any ideas on how to prevent this?
\\{\, ${1} \,\\}to avoid escaping the backslash. Try an look if it works. (In TextMate, for example, it works that way.) – Manuel Mar 02 '13 at 10:52