H
H
hard1762018-02-17 17:13:58
phpstorm
hard176, 2018-02-17 17:13:58

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.
<?PHP | ?>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
hard176, 2018-02-17
@hard176

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.

M
Marty McFly, 2018-10-19
@alex_shevch

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 question

Ask a Question

731 491 924 answers to any question