emmetio / sublime-text-plugin

The essential toolkit for web-developers
https://emmet.io
MIT License
253 stars 29 forks source link

Emmet and snippet compatibility issue #141

Open PUShAUNE opened 3 years ago

PUShAUNE commented 3 years ago

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>
sergeche commented 3 years ago

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

jacobraccuia commented 2 years ago

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!