Sublime Forum

PHP Autocomplete tag

#1

Hi all,

When i type <?php then [tab] [tab] the result is;

<?<?PHP ?>

Why does it add <? at the beginning?

How do i correctly autocomplete it?

Many thanks
Mike

0 Likes

#2

Type “php” then press tab. “<?” is added automatically as you can see from the result you got.

1 Like

#3

Paapaa, youre a good man, Ive always said that!

Thanks :slight_smile:

0 Likes

#4

I was excited to come across your answer, but when I tried entering php [tab] this autocompleted as <php><php>

However, when I tried php [space][delete][tab] it autocompleted as <?php ?>
Your way sounds a lot easier. Any ideas why your answer didn’t work for me?

I’m using emmet 2.0.2 that I found in this forum https://forum.sublimetext.com/t/emmet-2-0-alpha/47933

0 Likes

#5

Sorry, no idea. I have not used Sublime Text for a few years anymore at all. My productivity has skyrocketed after starting to use Visual Studio Code which is so much more powerful code editor in all respects. So I have to admit I don’t know how Sublime text works anymore.

0 Likes

#6

If it’s intelephense you’re talking about: that’s easily installable now https://packagecontrol.io/packages/LSP-intelephense

0 Likes