[TxMt] Re: Templates in TM2

Graham P Heath graham.p.heath at gmail.com
Wed May 27 14:32:56 UTC 2015

With a snippet, you create the snippet in the Bundle Editor and set the Tab Trigger to "!", then when you type "!" followed by a tab, you’d get the expanded version.

Why "!"? No good reason really, its just that I use the Emmet plugin and the shortcut for a base html page is "!" and then the expand key combo; Control + A. 

You can get all sorts of different html templates, ! = html5, just search for "html" on the cheat sheet below for html4, strict or otherwise.


Graham P Heath

On May 27, 2015 at 9:29:13 AM, Walter Lee Davis (waltd at wdstudio.com) wrote:

On May 27, 2015, at 8:47 AM, Igor <me at igorkozlov.me> wrote:  

>> I am sure this may have been discussed earlier, but I would like to know what the current state of Templates (File / New from Template) is in TM2. I started experimenting with 2 over the weekend, after about a decade of using 1.x exclusively. That was my immediate "miss", as I typed out the complete structure of an HTML page (like an animal). Am I just looking in the wrong place for these?  
> Why not just create a snippet with the structure of an HTML page?  

How do you invoke such a snippet? Would this be a regular type + tab kind of thing? In TM 1.x, these templates were part of the bundle, but were invoked through the File New dialog. I am asking if this functionality and menu integration is gone, or I have my copy misconfigured and I cannot see it.  


textmate mailing list  
textmate at lists.macromates.com  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20150527/953b5896/attachment.html>

More information about the textmate mailing list