[SVN] C bundle snippet: Typedef Struct

Jesper Särnesjö sarnesjo at gmail.com
Sat Mar 24 23:37:30 UTC 2007


Hi,

I've created a simple snippet for C (and friends) that expands "tds"
to a typedef'd struct declaration, since I find myself creating those
all the time.

The snippet's first tab stop is the name of the struct, including the
space before it. If you don't want to give the struct a name, you can
just delete it and tab on.

The second tab stop is the name of the struct, not including the space
before it. This is, obviously, for when you do want to give the struct
a name.

The third tab stop is the name of the type. By default, it is the name
of the struct, but capitalized.

The final tab stop is the contents of the struct declaration.

And that's all there is to it! Hopefully someone apart from me will
find this useful.

Regards,
Jesper Särnesjö
-------------- next part --------------
A non-text attachment was scrubbed...
Name: c-typedef-struct.tar.gz
Type: application/x-gzip
Size: 873 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate-dev/attachments/20070325/4ed694e8/attachment.gz>


More information about the textmate-dev mailing list