Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emmet and snippet compatibility issue #141

Open
PUShAUNE opened this issue Nov 11, 2020 · 2 comments
Open

Emmet and snippet compatibility issue #141

PUShAUNE opened this issue Nov 11, 2020 · 2 comments

Comments

@PUShAUNE
Copy link

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
Copy link
Member

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
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants