Search code examples
htmlsublimetext2emmetpreset

How to create your own commands in emmet?


I've been using Emmet in Sublime Text for a long time. Now I like to insert my own commands to make it even faster.

For example, if I type this:

block

and then press tab I want it to expand into this:

<div class="block">
  <div class="text">
     <h3>|</h3>
     <p></p>
  </div>
</div>

And, if possible, I'd like it to immediately begin where the | is placed.

You can see it as some kind of preset.

I've also been messing with the directory, but I don't want to do that on my own unless I might mess things up.

Is this possible?


Solution

  • I don't know very much sublime text but looks like you're searching for the snippet package http://www.hongkiat.com/blog/sublime-code-snippets/