I’ve recently started wring tests which require them to look something like this.
function test_a_user_can_view_their_profile() { }
I have this so far which will replace spaces with underscores, my problem is that the snippet also keeps the method name with the spaces as I type, how do I only keep the one with the underscores?
<snippet>
<content><![CDATA[
function ${1:} ${1/\s/_/g}()
{
${2:}
}
]]></content>
<tabTrigger>t</tabTrigger>
</snippet>