[TxMt] Manipulating $1

Bob Ueland cocoabob at gmail.com
Thu Aug 9 07:22:05 UTC 2007


I've just started to try out TextMate :). I've created a little snippet
called vam (short for variable and method) that looks like this

{
    int    ${1:var};
}

-(void)    set${1:var}:(int) n;


So when I enter vam and hit tab, I am presented with the following chunk

{
    int    var;
}

-(void)    setvar:(int) n;

where var is highlighted. If I start to type numerator the chunk changes to

{
    int    numerator;
}

-(void)    setnumerator:(int) n;

However I would like setnumerator to be outputted as setNumerator.

Is there a way to do this?

Thanks Bob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070809/79fd0eae/attachment.html>


More information about the textmate mailing list