D
D
Don Puh2022-01-30 02:20:52
phpstorm
Don Puh, 2022-01-30 02:20:52

Where in PhpStorm to edit "Surround With"?

Where can I edit the standard templates in the Surround With menu?
And also where can I disable php auto-insert before "<?" (requires short entry/insert form). With normal coding, it is enabled and working.

61f5cb625560d285745206.png

61f5cb69079d9904200897.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2022-01-30
@donpuh

A short notation is strongly discouraged - https://www.php-fig.org/psr/psr-1/
The very first paragraph says that you need to use only the full form <?phpand a short one to replace echo <?=.
I'll add a quote from there.

Files MUST use only <?php and <?= tags.

and translation of definition from RFC2119
MUST This word or the terms "REQUIRED" or "SHALL" mean that the definition is an absolute requirement of the specification

Templates are edited here File | settings | editor | Live Templates
This menu includes any snippets that contain a variable $SELECTION$
. In general, absolutely all menus, including context menus,
are located in File | settings | Appearance & Behavior | Menus and Toolbars
It's hard to find anything there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question