[TxMt] Skip snippet autocompletion
Allan Odgaard
allan at macromates.com
Sun Jul 31 08:27:19 UTC 2005
On 31/07/2005, at 10.06, Andreas Wahlin wrote:
> Let's say I write img<tab> and then I get the img tag with three
> attributes to fill in, let's say I want to skip the class
> attribute, how do I do that?
Not possible -- if you often skip it, I'd suggest removing it from
the snippet (IMHO many of the HTML snippets carry too many
attributes). If you skip it 50% of the time, you could change the
snippet into this:
<img src="$1" alt="$2"${3: class=""} />
That way, when you leave the alt-attribute, you can either do delete
+ tab to remove and leave snippet, or do arrow right + arrow left to
get caret in between the quotes. That's currently the best way to
deal with optional arguments in snippets.
More information about the textmate
mailing list