I have created several custom User Snippets in my VSCode that I have added to the html.json file. My idea is to be able to tab and edit both inside and outside PHP tags.
One example of an if else with PHP inside HTML:
"Ife:": {
"prefix": ":ife",
"body": [
"<?php if($1): ?>",
"\t$2",
"<?php else: ?>",
"\t$3",
"<?php endif; ?>",
"$0"
],
"description": "Ife:"
}
The problem that I have encountered is that when I tab outside the PHP tags and I want to use an Emmet shortcut Emmet does not work. I can keep tabbing until I get to $0 and after that if I place the cursor back to $2 or $3 THEN I CAN USE Emmet shortcuts.
So, is it not possible to use Emmet with snippets' tabstops or am I doing something wrong?