Open code completion popup after insterted live template

Answered

A have created a new live template: Entering "t tab" writes "$this->" to the editor. What I would love to have is, that the code completion popup would automatically open at this point. Is there a way to achieve this? Or some other way to speed up the way to "$this->" + "code completion"?

What I am doing now is:
"t tab" + "ctrl space"

Alternative would be to change the live template to "$this-" (without the ">") and hit:
"t tab" + ">"

0
2 comments

Hi there,

Introduce any variable after your $this-> and then specify in "Edit Variables" screen that it should invoke Code Completion for it (function called "complete()")

https://www.jetbrains.com/help/phpstorm/live-template-variables.html

1

Whow! Thank you, it works!

0

Please sign in to leave a comment.