PHPStorm Live templates do not expand

I just started playing araound with PHPStorm, and I can't get live templates to work. For example, there for a public function. "Pubf", then a tab to expand, however, when I display it on the screen, it looks like this ...

<pubf></pubf> 

What's happening? Is there a parameter that I need to enable in order to make it work?

thanks

+7
ide phpstorm
source share
3 answers

It was a question about the size of the template, you just had to choose the appropriate file types.

+14
source share

Just for clarity:

Although you are under the PHP branch, you still need to apply the abbreviation to the application. Click the "Define" link and check the "PHP" box.

Define

+16
source share

Try:

  • Settings / Emmet and changing the default value of 'Expand abbreviation with' from tab to say custom

  • Make sure the context is selected below the template text. There is a small 'Change' link where you set the context. I had to choose all contexts.

0
source share

All Articles