sublimetext2 - Change HTML + Tab autocomplete (Sublime Text 2) -


when type out word so
enter image description here

and press tab autocompletes so...

autocompleted image
but want more along lines of this

enter image description here

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

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -