W
W
wiox2016-04-19 10:57:27
PHP
wiox, 2016-04-19 10:57:27

How to remove auto-add code to the opening php tag in PhpStorm?

When typing <? auto-add hints are constantly coming out. And after I press Enter, unnecessary characters are substituted for the opening php tag. You have to press Esc, or even erase the added hints if you pressed Enter out of habit.
How can I print the opening tag <? , press Enter, and so that nothing is added to it?
cd2qmoVV.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton, 2016-04-19
@karminski

Press not Enter, but Tab, then you will get something like <?php {cursor here}; ?>

V
Vadim, 2016-04-19
@kylt_lichnosti

When creating, choose to create a php file or a php class, not just a file. Then all the tags will be there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question