Textmate autocomplete html tags
Last Updated on Wednesday, 28 December 2011 01:10 Written by Dan Wednesday, 28 December 2011 01:10
Just watching some tutorial videos on Treehouse, I noticed some interesting code completion going on, much like when I used to use Dreamweaver where adding a tag would prompt with a dropdown for options within that tag ie the input where we may have name, type, class, etc.
The tutorial videos show Textmate in use and similar code completion options going on. So here’s a few steps you can take using a Mac, but presumably it’s the same on PC.
- Type a tag name (ie input)
- Press ctrl-alt < (less-than sign) – the tag gets a wrapper < >
- Press alt-esc – we get a dropdown list of options
- Select an option, the menu disappears
For tags that need closing, ie <span> press ctrl-alt . (period) for tag completion.
Nicer still, press ctrl-Shift-w for paragraph tags – and after that, use alt-esc for tag options.




