sublime-text-plugin icon indicating copy to clipboard operation
sublime-text-plugin copied to clipboard

Emmet and snippet compatibility issue

Open PUShAUNE opened this issue 5 years ago • 2 comments

Hi, With the latest Emmet version installed, I noticed an issue using snippets. When I hit TAB, the cursor go one line down. Second time, it goes two lines down. Third time, the snippet works.

Here is a .gif of what happens: acf_issue

Here is my snippet code:

<snippet>
	<content><![CDATA[
<?php the_field(''); ?>
]]></content>
	<tabTrigger>acf</tabTrigger>
</snippet>

PUShAUNE avatar Nov 11 '20 15:11 PUShAUNE

It's because there is tabstop behind expanded abbreviation so Tab key moves there. You can reset tabstops with Esc key then expand native snippet as usual

sergeche avatar Nov 11 '20 16:11 sergeche

Thanks @sergeche after searching for a while I finally found this. Is there a setting or a way to hit something other than esc to prevent this from happening by default? I have similar workflow where I create html, then insert php and need to hit esc!

jacobraccuia avatar Feb 14 '22 16:02 jacobraccuia