sublimetext2 - Change HTML + Tab autocomplete (Sublime Text 2) -
when type out word so
and press tab autocompletes so...
but want more along lines of this
this 1 of sublime's built in snippets. can edit default 1 or create new one. edit existing,
- preferences > browse packages
- open html folder
- edit html.sublime-template
the default snippet below:
<snippet> <content><![cdata[<html> <head> <title>$1</title> </head> <body> $0 </body> </html>]]></content> <tabtrigger>html</tabtrigger> <scope>text.html</scope> </snippet>
the content want edit between <![cdata[
, ]]>
. $0 , $1 variables placeholders content , once sublime text renders snippet, can move between placeholders pressing tab.
Comments
Post a Comment