Sublime Forum

A key for skipping characters in a line until '>'

#1

I’d like to create a hotkey/shortcut for skipping through characters within a line until it sees a ‘>’ character, which is the last character it skips.

For example, I might type:

<a

As soon as I press enter, my auto completion automatically turns this into:

<a href="*"></a>

And leaves the cursor where the star is above. I’d then type in the href link, and then I want the ability to skip through and start immediately writing text in between the and tags without having to either type the extra "> keys or pressing the right arrow button on my keyboard twice

0 Likes

#2

Ok, figured it out myself

Using Emmet plugin there is a function called “Matching pair” or “Go To Matching Pair”

0 Likes

#3

You could also just press tab after it has expanded the snippet.
I’m using Sublime Text 3 now, but I’m pretty sure it’s the same in Sublime Text 2.

0 Likes