Answer the question
In order to leave comments, you need to log in
PHPSTORM Live Template PHP how to make automatic cursor between brackets?
Hello specialists!
Please help a beginner. There is such a thing as LiveTemplates in the PHPSTORM settings.
I made a snippet for PHP there - a question mark, which is converted after pressing TAB into a piece of code
<?PHP ?>
Attention, a question. What needs to be done so that the cursor is automatically inserted between the tags like this.
Maybe there is a plugin for this? I just saw this in one video tutorial. It's very convenient, you don't have to go back, you get right into the block. |
Answer the question
In order to leave comments, you need to log in
I asked the question myself, I will answer it myself, maybe it will be useful to someone, they suggested it to me. The snippet should be written like this:
<?php $END$ ?> and everything worked.
Thank you! It's funny that I googled how to determine the place for the cursor in livetemplate, and I needed exactly the same snippet as you - <?PHP | ?>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question